[sync_encode_sync] delete local obsolete opus
This commit is contained in:
parent
a6f13eb046
commit
d8c6d6bba9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user