mirror of
https://github.com/jbowdre/library-syncer.git
synced 2024-11-23 02:12:17 +00:00
stop excluding json files so rsync can clean up deleted templates
This commit is contained in:
parent
693d93f649
commit
3a74c96264
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue