[sync_encode_sync] delete local obsolete opus

This commit is contained in:
LuKe Tidd 2023-11-18 14:48:42 -05:00
parent a6f13eb046
commit d8c6d6bba9
Signed by: luke
GPG Key ID: 75D6600BEF4E8E8F

View File

@ -1,10 +1,9 @@
#!/bin/bash
cd /data/music/flac
rsync -a --progress * thrakkorzog:/home/luket/flac
rsync -a --progress --delete /data/music/flac/ thrakkorzog:/home/luket/flac
ssh thrakkorzog 'cd /home/luket/git/library_works && ./encode_all'
if [[ "$?" == 0 ]]; then
rsync -a --progress thrakkorzog:/home/luket/opus/* /data/music/opus/
rsync -a --progress --delete thrakkorzog:/home/luket/opus/ /data/music/opus
else
printf 'Something went wrong in SSH\n' >&2
exit 1