summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2015-06-12 18:19:56 +0200
committerMichael Scherer <misc@zarb.org>2015-06-12 18:19:56 +0200
commit02c37ee1fb548b911b6b137a1bbbf635415bb8a3 (patch)
tree3af337b693390107b899c8154172b00e92a50cf4 /roles
parent20b224a7d5cd8d4142b86ff657ffcd1a4fd30340 (diff)
Also make a backup of the archive
Diffstat (limited to 'roles')
-rw-r--r--roles/mailman/files/dump_mailman.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/mailman/files/dump_mailman.sh b/roles/mailman/files/dump_mailman.sh
index 4626e31..97857f4 100644
--- a/roles/mailman/files/dump_mailman.sh
+++ b/roles/mailman/files/dump_mailman.sh
@@ -8,3 +8,7 @@ for i in $(/usr/lib/mailman/bin/list_lists -b); do
done
/usr/lib/mailman/bin/config_list -o $DIR/${i}.config ${i}
done
+
+[ -d $DIR/archives ] || mkdir -p $DIR/archives
+# TODO use rsync
+cp -R -f /var/lib/mailman/archives/private/* $DIR/archives/