From 3a74c96264ffd504ad66273ab2015f3adb8fa7b9 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 19 Sep 2022 09:27:26 -0500 Subject: [PATCH] stop excluding json files so rsync can clean up deleted templates --- client/build/sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/build/sync.sh b/client/build/sync.sh index 44e50d1..f37f30c 100644 --- a/client/build/sync.sh +++ b/client/build/sync.sh @@ -10,7 +10,7 @@ fi echo -e "[$(date +"%Y/%m/%d-%H:%M:%S")] Sync sync starts NOW!" # sync -/usr/bin/rsync --progress --bwlimit=${SYNC_MAX_BW:-0} -e "ssh -l syncer -p ${SYNC_PORT:-2222} -i /syncer/.ssh/id_syncer -o StrictHostKeyChecking=no" -avh --stats --exclude '*.json' --exclude '.vSphere-HA' $SYNC_PEER:/ /syncer/library --delete || [ $? -eq 23 ] && true +/usr/bin/rsync --progress --bwlimit=${SYNC_MAX_BW:-0} -e "ssh -l syncer -p ${SYNC_PORT:-2222} -i /syncer/.ssh/id_syncer -o StrictHostKeyChecking=no" -avh --stats --exclude '.vSphere-HA' $SYNC_PEER:/ /syncer/library --delete || [ $? -eq 23 ] && true # handle removed files / remove directories grep '"files": \[\]' /syncer/library/*/item.json -l | xargs rm -f $1