diff --git a/roles/dokuwiki/templates/backup.sh b/roles/dokuwiki/templates/backup.sh index e6a176a..3453bee 100644 --- a/roles/dokuwiki/templates/backup.sh +++ b/roles/dokuwiki/templates/backup.sh @@ -27,7 +27,7 @@ fi # Purge oldest backup if we need to currentbackupcount="$(ls -1 "$OUTDIR" | wc -l)" if (( currentbackupcount >= retention )); then - lastbackup="$(find "$OUTDIR" -name \*.zip 2>/dev/null | sort | head -n 1)" + lastbackup="$(find "$OUTDIR" -name \*.tar.gz 2>/dev/null | sort | head -n 1)" if [ -f "$lastbackup" ]; then log "Removing old backup: $lastbackup" rm "$lastbackup"