From 7136c4baf6b1cc06efe533cb7df205feedff247d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 10 Aug 2014 10:48:47 +0200 Subject: Add backupninja snippet for mailman. --- backupninja/mailman.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 backupninja/mailman.sh diff --git a/backupninja/mailman.sh b/backupninja/mailman.sh new file mode 100644 index 0000000..858ec80 --- /dev/null +++ b/backupninja/mailman.sh @@ -0,0 +1,8 @@ +LANG=en_US.UTF-8 + +mkdir -p /var/backups/mailman +for list in `/usr/lib/mailman/bin/list_lists --bare`; do + /usr/lib/mailman/bin/config_list -o /var/backups/mailman/$list.py $list + /usr/lib/mailman/bin/list_members --fullnames --preserve --regular -o /var/backups/mailman/$list.members $list + /usr/lib/mailman/bin/list_members --fullnames --preserve --digest -o /var/backups/mailman/$list.members-digest $list +done -- cgit v1.2.3