synchro: back to the default behaviour: don't synchronize/erase files that aren't treated yet

This commit is contained in:
nemunaire 2019-02-05 03:18:39 +01:00
parent 771627a0da
commit ff7c89af9f

View file

@ -19,10 +19,10 @@ touch /tmp/stop
while ! [ -f SETTINGS/stop ] || [ /tmp/stop -nt SETTINGS/stop ]
do
# Synchronize static files pages
rsync -e "$SSH_OPTS" -av --delete --links TEAMS SETTINGS FILES "${FRONTEND_HOSTNAME}":"${BASEDIR}"
rsync -e "$SSH_OPTS" -av --delete TEAMS SETTINGS FILES "${FRONTEND_HOSTNAME}":"${BASEDIR}"
# Synchronize submissions
rsync -e "$SSH_OPTS" -av --links --delay-updates --temp-dir=.tmp/ --partial-dir=.tmp/ --remove-source-files "${FRONTEND_HOSTNAME}":"${BASEDIR}"/submissions/ submissions/
rsync -e "$SSH_OPTS" -av --ignore-existing --delay-updates --temp-dir=.tmp/ --partial-dir=.tmp/ --remove-source-files "${FRONTEND_HOSTNAME}":"${BASEDIR}"/submissions/ submissions/
sleep 0.3
done