Fix order of tar args in NC backup script
This commit is contained in:
parent
3a33549174
commit
f337532435
@ -48,7 +48,7 @@ if cd "{{ nextcloud_webroot }}"; then
|
||||
trap 'sudo -u www-data ./occ maintenance:mode --off' EXIT
|
||||
date="$(date -Iseconds)"
|
||||
log "Creating data backup"
|
||||
tar --exclude "files_trashbin" czhf "$OUTDIR/$date-data.tar.gz" "/var/nextcloud"
|
||||
tar czhf "$OUTDIR/$date-data.tar.gz" "/var/nextcloud" --exclude "files_trashbin"
|
||||
log "Creating webroot backup"
|
||||
tar czf "$OUTDIR/$date-webroot.tar.gz" "{{ nextcloud_webroot }}"
|
||||
log "Creating DB backup"
|
||||
|
Loading…
Reference in New Issue
Block a user