Actually wait let's use the URL
This commit is contained in:
parent
763f1d0209
commit
61175feabd
@ -48,11 +48,11 @@ if cd "{{ nextcloud_webroot }}"; then
|
|||||||
trap 'sudo -u www-data ./occ maintenance:mode --off' EXIT
|
trap 'sudo -u www-data ./occ maintenance:mode --off' EXIT
|
||||||
date="$(date -Iseconds)"
|
date="$(date -Iseconds)"
|
||||||
log "Creating data backup"
|
log "Creating data backup"
|
||||||
tar czhf "$OUTDIR/nc-$date-data.tar.gz" "/var/nextcloud" --exclude "/var/nextcloud/*/files_trashbin"
|
tar czhf "$OUTDIR/{{ nextcloud_url }}-$date-data.tar.gz" "/var/nextcloud" --exclude "/var/nextcloud/*/files_trashbin"
|
||||||
log "Creating webroot backup"
|
log "Creating webroot backup"
|
||||||
tar czf "$OUTDIR/nc-$date-webroot.tar.gz" "{{ nextcloud_webroot }}"
|
tar czf "$OUTDIR/{{ nextcloud_url }}-$date-webroot.tar.gz" "{{ nextcloud_webroot }}"
|
||||||
log "Creating DB backup"
|
log "Creating DB backup"
|
||||||
mysqldump nextcloud --single-transaction | gzip > "$OUTDIR/nc-$date-db.sql.gz"
|
mysqldump nextcloud --single-transaction | gzip > "$OUTDIR/{{ nextcloud_url }}-$date-db.sql.gz"
|
||||||
log "Unsetting maintenance mode"
|
log "Unsetting maintenance mode"
|
||||||
sudo -u www-data ./occ maintenance:mode --off > /dev/null 2>&1
|
sudo -u www-data ./occ maintenance:mode --off > /dev/null 2>&1
|
||||||
trap : EXIT
|
trap : EXIT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user