backup production lichess dir before rsync
This commit is contained in:
parent
efabf09dcf
commit
2e88cac0a8
|
@ -60,6 +60,9 @@ if [ $? != 0 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
lilalog "Backup production lichess dir"
|
||||||
|
ssh $REMOTE "cp -r $REMOTE_DIR /home/backup/lichess-$(date +%Y-%m-%d)"
|
||||||
|
|
||||||
RSYNC_OPTIONS=" \
|
RSYNC_OPTIONS=" \
|
||||||
--archive \
|
--archive \
|
||||||
--no-o --no-g \
|
--no-o --no-g \
|
||||||
|
|
Loading…
Reference in a new issue