From 2d5895c76e1d01b4a71b2cdcd6eb20c50ebea9df Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 6 May 2020 23:24:10 -0500 Subject: [PATCH] Really for real fix exclude glob --- roles/nextcloud/templates/backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nextcloud/templates/backup.sh b/roles/nextcloud/templates/backup.sh index feaa90d..d8f2fb1 100644 --- a/roles/nextcloud/templates/backup.sh +++ b/roles/nextcloud/templates/backup.sh @@ -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 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" tar czf "$OUTDIR/$date-webroot.tar.gz" "{{ nextcloud_webroot }}" log "Creating DB backup"