diff --git a/roles/nextcloud/templates/backup.sh b/roles/nextcloud/templates/backup.sh index bca012a..fb5f06b 100644 --- a/roles/nextcloud/templates/backup.sh +++ b/roles/nextcloud/templates/backup.sh @@ -48,8 +48,6 @@ if cd "{{ nextcloud_webroot }}"; then tar czhf "$OUTDIR/{{ nextcloud.url }}-$date-data.tar.gz" "/var/nextcloud" --exclude "/var/nextcloud/*/files_trashbin" log "Creating webroot backup" tar czf "$OUTDIR/{{ nextcloud.url }}-$date-webroot.tar.gz" "{{ nextcloud_webroot }}" - log "Creating DB backup" - mysqldump nextcloud --single-transaction | gzip > "$OUTDIR/{{ nextcloud.url }}-$date-db.sql.gz" else log "Could not change directory: $OUTDIR" return 3