From d8c6d6bba91fa74802f9f06250055b73ea8a4389 Mon Sep 17 00:00:00 2001 From: Luke Tidd Date: Sat, 18 Nov 2023 14:48:42 -0500 Subject: [PATCH] [sync_encode_sync] delete local obsolete opus --- sync_encode_sync | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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