Merge pull request #455 from nextcloud/enh/47/auto-backup

add option to enable daily backups
This commit is contained in:
Simon L
2022-04-06 13:54:00 +02:00
committed by GitHub
19 changed files with 314 additions and 16 deletions

View File

@@ -178,6 +178,7 @@ if [ "$BORG_MODE" = restore ]; then
if ! rsync --stats --archive --human-readable -vv --delete \
--exclude "nextcloud_aio_mastercontainer/session/"** \
--exclude "nextcloud_aio_mastercontainer/certs/"** \
--exclude "nextcloud_aio_mastercontainer/data/daily_backup_running" \
--exclude "nextcloud_aio_mastercontainer/data/configuration.json" \
/tmp/borg/nextcloud_aio_volumes/ /nextcloud_aio_volumes; then
echo "Something failed while restoring from backup."