From f2f94a399b4655f84402ea703e7fa08db545a5f7 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 8 Dec 2018 20:13:48 +0100 Subject: [PATCH] synchro: copy symlink as symlink --- configs/synchro.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/synchro.sh b/configs/synchro.sh index 4d50b826..ad309a00 100644 --- a/configs/synchro.sh +++ b/configs/synchro.sh @@ -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 TEAMS SETTINGS FILES "${FRONTEND_HOSTNAME}":"${BASEDIR}" + rsync -e "$SSH_OPTS" -av --delete --links TEAMS SETTINGS FILES "${FRONTEND_HOSTNAME}":"${BASEDIR}" # Synchronize submissions - rsync -e "$SSH_OPTS" -av --delay-updates --temp-dir=.tmp/ --partial-dir=.tmp/ --remove-source-files "${FRONTEND_HOSTNAME}":"${BASEDIR}"/submissions/ submissions/ + rsync -e "$SSH_OPTS" -av --links --delay-updates --temp-dir=.tmp/ --partial-dir=.tmp/ --remove-source-files "${FRONTEND_HOSTNAME}":"${BASEDIR}"/submissions/ submissions/ sleep 0.3 done