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, and its syntax is pretty straightforward:
Usage: 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:

/usr/local/bin/ listname is available under a CreativeCommons-Attribution license.

8 Responses to Mailman mailing list backup script

  1. Laure says:

    How do you use the mail script you have?

  2. 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.

  3. Pingback: blog.shrub » Blog Archive » MySQL database backup script

  4. metoo says:

    Great – I can really use this – but HOW? Where do I put it and how do I get it to run?

  5. blackboard world says:

    this is very good script and very helpful to get the mail backups easily.

  6. Pingback: Mailman : Cómo hacer backup de mis suscriptores | Existo

  7. Dan Mullen says:


    I’m having a problem backing up a mailing list. It seems to be because the list name contains an ‘@’ symbol – the temporary directory has that character escaped with a backslash (‘\’). Can you provide any advice please?


  8. paul says:

    Are you getting an error message? Where is the script failing?

Leave a Reply

Your email address will not be published. Required fields are marked *