Really for real fix exclude glob
This commit is contained in:
parent
ebfa2e4b92
commit
2d5895c76e
@ -48,7 +48,7 @@ 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/$date-data.tar.gz" "/var/nextcloud" --exclude "files_trashbin"
|
tar czhf "$OUTDIR/$date-data.tar.gz" "/var/nextcloud" --exclude "/var/nextcloud/*/files_trashbin"
|
||||||
log "Creating webroot backup"
|
log "Creating webroot backup"
|
||||||
tar czf "$OUTDIR/$date-webroot.tar.gz" "{{ nextcloud_webroot }}"
|
tar czf "$OUTDIR/$date-webroot.tar.gz" "{{ nextcloud_webroot }}"
|
||||||
log "Creating DB backup"
|
log "Creating DB backup"
|
||||||
|
Loading…
Reference in New Issue
Block a user