Mailman mailing list backup script
I’m sure there are some of these around already, but I have written a script to back up your Mailman mailing lists. It dumps the member roster and list configuration into separate text files, zips them up, emails them to you, and cleans up after itself.
The script is called mailmanBackup.py, and its syntax is pretty straightforward:
Usage: mailmanBackup.py listname <recipient> [<sender>]
If sender is not specified, the recipient is used as the sender. The recipient can also be a comma-separated list of email addresses.
Typical use would be to place a helper script like this /etc/cron.weekly:
#!/bin/sh
/usr/local/bin/mailmanBackup.py listname emailaddress@domain.com
mailmanBackup.py is available under a CreativeCommons-Attribution license.
August 31st, 2006 at 5:46 am
How do you use the mail script you have?
September 2nd, 2006 at 12:49 pm
Dude, found one of your (2005) comments on WorldChanging. You’re me! But you’re smarter and better looking…except maybe I could kick your butt at Scrabble. Also, I was surprised that Doonesbury didn’t appear under the comics. Hmm. Too political?
Anyway, you’ve clearly been dealing with stuff for years that I’m just getting into. Love to connect sometime. curt_beckmann at yahoo.
I’ll be back.
March 3rd, 2007 at 2:06 am
[…] I wrote one of these for Mailman last fall, and finally got around to putting together a quick script to back up your MySQL database. It optimizes and repairs all of your tables, then creates a directory for today, dumps each database into a SQL file and zips it up, leaving you with a directory of .tgz files. […]
September 26th, 2007 at 6:24 am
Great - I can really use this - but HOW? Where do I put it and how do I get it to run?