diff options
| author | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:03 -0700 |
|---|---|---|
| committer | pants <niklasjo2004@gmail.com> | 2026-09-21 14:17:03 -0700 |
| commit | 7b21727285e50b0b050c4ddd70d07542229c5366 (patch) | |
| tree | 5d369153c5df5b41f3750d25479a68f20169c8ff /scripts/sync_music | |
init
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 |
