From 7c318c8aed1e724f16c0150b83645d596a1ee314 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Mon, 9 Jun 2025 17:13:12 +0100 Subject: [PATCH] mailman: only backup archive txt files once, not the txt.gz duplicates --- cookbooks/mailman/templates/default/backup.cron.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cookbooks/mailman/templates/default/backup.cron.erb b/cookbooks/mailman/templates/default/backup.cron.erb index bf6df6530..05e64cb3c 100644 --- a/cookbooks/mailman/templates/default/backup.cron.erb +++ b/cookbooks/mailman/templates/default/backup.cron.erb @@ -12,7 +12,12 @@ B="lists-$D.tar.zst" mkdir "$T/lists-$D" ln -s /var/lib/mailman "$T/lists-$D/mailman" -nice tar --create --dereference --warning=no-file-changed --warning=no-file-removed --directory="$T" "lists-$D" | nice zstd --quiet --rsyncable -o "$T/$B" +nice tar --create --dereference \ + --warning=no-file-changed \ + --warning=no-file-removed \ + --exclude='*/archives/*/*/*.txt.gz' \ + --directory="$T" \ + "lists-$D" | nice zstd --quiet --rsyncable -o "$T/$B" nice rsync --preallocate --fuzzy "$T/$B" backup.openstreetmap.org::backup rm -rf "$T" -- 2.39.5