summaryrefslogtreecommitdiff
path: root/bin/sync_music
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sync_music')
-rwxr-xr-xbin/sync_music7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/sync_music b/bin/sync_music
new file mode 100755
index 0000000..11fa799
--- /dev/null
+++ b/bin/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