From 02c37ee1fb548b911b6b137a1bbbf635415bb8a3 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Fri, 12 Jun 2015 18:19:56 +0200 Subject: Also make a backup of the archive --- roles/mailman/files/dump_mailman.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/mailman/files') 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/ -- cgit