synchro: synchronize logs from frontend

This commit is contained in:
nemunaire 2020-01-30 18:51:06 +01:00
commit a82a0fb170
3 changed files with 7 additions and 0 deletions

View file

@ -17,6 +17,9 @@ while ! [ -f SETTINGS/stop ] || [ /tmp/stop -nt SETTINGS/stop ]
do
rsync -e "$SSH_OPTS" -av --delete FILES "${FRONTEND_HOSTNAME}":"${BASEDIR}"
# Synchronize logs
rsync -e "$SSH_OPTS" -av "${FRONTEND_HOSTNAME}":/var/log/ /var/log/frontend
sleep 5
done &