diff options
Diffstat (limited to 'scripts/sync_music')
| -rwxr-xr-x | scripts/sync_music | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/sync_music b/scripts/sync_music new file mode 100755 index 0000000..1ea0f7e --- /dev/null +++ b/scripts/sync_music @@ -0,0 +1,7 @@ +#!/bin/sh +rsync -aP $HOME/wdraidz/media/music/ $HOME/music/ > $HOME/.sync_log && SUCCESS=1 +if [[ $SUCCESS == 1 ]]; then + notify-send "sync complete; logged to $HOME/.sync_log" -i : +else + notify-send "sync error..." -i : +fi |
