2021-10-20 10:10:01 -04:00
|
|
|
#!/bin/bash -x
|
|
|
|
|
|
|
|
# Name of NFS server to use
|
|
|
|
SERVER=cheesecake
|
|
|
|
|
|
|
|
# Music source
|
2023-07-19 13:25:23 -04:00
|
|
|
SOURCE=/net/cheesecake/media/Music/vorbis/
|
2021-10-20 10:10:01 -04:00
|
|
|
|
|
|
|
# Music directory / destination
|
|
|
|
MUSIC=/home/anna/Music
|
|
|
|
|
|
|
|
nc -z -w 10 $SERVER 2049
|
|
|
|
if [ $? != 0 ]; then
|
|
|
|
notify-send "$0: $SERVER can't be found!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
rsync -avh --inplace --delete $SOURCE $MUSIC
|
|
|
|
notify-send "$0: Sync finished!"
|