backup production lichess dir before rsync

pull/1738/head
Thibault Duplessis 2016-03-19 11:26:26 +07:00
parent efabf09dcf
commit 2e88cac0a8
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,9 @@ if [ $? != 0 ]; then
exit 1
fi
lilalog "Backup production lichess dir"
ssh $REMOTE "cp -r $REMOTE_DIR /home/backup/lichess-$(date +%Y-%m-%d)"
RSYNC_OPTIONS=" \
--archive \
--no-o --no-g \