diff --git a/sync_encode_sync b/sync_encode_sync index 052a747..7daf2bb 100755 --- a/sync_encode_sync +++ b/sync_encode_sync @@ -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