Added script to run on server for nightly MongoDB backups

Forced to use IPv4 due to IPv6 connectivity issues with Swami.
This commit is contained in:
2018-02-06 11:00:40 +01:00
parent 6b56df9e9c
commit 2141aed06c
3 changed files with 33 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ echo "==================================================================="
echo "Bringing remote Docker up to date…"
$SSH mkdir -p $REMOTE_DOCKER_COMPOSE_DIR
$SCP \
$DOCKER_DEPLOYDIR/$PROJECT_NAME/docker/{docker-compose.yml,renew-letsencrypt.sh} \
$DOCKER_DEPLOYDIR/$PROJECT_NAME/docker/{docker-compose.yml,renew-letsencrypt.sh,mongo-backup.{cron,sh}} \
$DEPLOYHOST:$REMOTE_DOCKER_COMPOSE_DIR
$SSH -T <<EOT
set -e