summaryrefslogtreecommitdiffstats
path: root/roles/mailman
diff options
context:
space:
mode:
Diffstat (limited to 'roles/mailman')
-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/