diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-08-10 10:48:47 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-08-10 10:48:47 +0200 |
commit | 7136c4baf6b1cc06efe533cb7df205feedff247d (patch) | |
tree | c4f93e8eabc101643b2279d31ea82f83ad0fc3c9 | |
parent | c135c8e7e8c9923c0594a281bb3eb8a88f3c0e08 (diff) |
Add backupninja snippet for mailman.
-rw-r--r-- | backupninja/mailman.sh | 8 |
1 files changed, 8 insertions, 0 deletions
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 |