diff options
-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 |