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
commit 888d16d790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 314 additions and 16 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -eu
while true; do

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# version_greater A B returns whether A > B
version_greater() {
@ -230,6 +230,11 @@ if ! [ -f "/mnt/ncdata/skip.update" ]; then
php /var/www/html/occ maintenance:mimetype:update-db
fi
fi
# Performing update of all apps if daily backups are enabled, running and successful
if [ "$DAILY_BACKUP_RUNNING" = 'yes' ]; then
php /var/www/html/occ app:update --all
fi
fi
# Check if appdata is present