fix: also exclude logs/ (plural) directories from the archive

Some sites use logs/ instead of log/ (e.g. webscroll.fr/logs/nginx/) -
the previous re:/log/ pattern didn't match the plural, so those files
kept showing up as modified every backup.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
kbe
2026-07-25 23:06:32 +02:00
co-authored by Claude Sonnet 5
parent cd17727ff9
commit bfafb09ee6
+2 -2
View File
@@ -244,7 +244,7 @@ fi
# MariaDB stays up throughout: the dump above is already transactionally
# consistent, and the container's raw data directory carries a .nobackup
# marker (excluded here via --exclude-if-present) so its live files are
# never read by borg. Per-site log/ dirs (nginx access/error logs etc.)
# never read by borg. Per-site log/ or logs/ dirs (nginx access/error logs etc.)
# are excluded too - they churn on every request, so backing them up adds
# noise and dedup overhead for no recovery value.
step "Step 2: Creating archive $ARCHIVE"
@@ -259,7 +259,7 @@ run_cmd timeout --signal=INT --kill-after=120s "$CREATE_TIMEOUT" \
--exclude-caches \
--exclude-if-present .nobackup \
--keep-exclude-tags \
--exclude 're:/log/' \
--exclude 're:/logs?/' \
"::$ARCHIVE" \
"$TARGET"