|
⇤ ← Revision 1 as of 2008-05-28 20:28:12
Size: 1551
Comment:
|
Size: 1532
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| #pragma page-filename DOC/versions/4292704 | #pragma page-filename DOC/versions/4292705 |
| Line 3: | Line 3: |
| See also FAQ 4.6 at <[[http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.006.htp]]>. | See also FAQ 4.6 at [[../How can I backup my Mailman lists/membership/etc on a regular basis?|How can I backup my Mailman lists/membership/etc on a regular basis?]] |
| Line 13: | Line 13: |
| }}} | |
| Line 15: | Line 14: |
{{{ |
|
| Line 20: | Line 17: |
| }}} | |
| Line 22: | Line 18: |
{{{ |
|
| Line 27: | Line 21: |
| }}} | |
| Line 29: | Line 22: |
| #application/octet-stream [${subject}] ${file} | |
| Line 30: | Line 24: |
| {{{ #application/octet-stream [${subject}] ${file} }}} {{{ |
|
| Line 42: | Line 30: |
| * | * |
| Line 46: | Line 34: |
{{{ }}} |
|
| Line 56: | Line 40: |
{{{ }}} |
4.18. How do I backup my lists and their configurations/membership rosters?
See also FAQ 4.6 at How can I backup my Mailman lists/membership/etc on a regular basis?
You can use the following scripts in a cronjob:
#!/bin/bash
#set -x
# Sends a file to an email address as a MIME attachment.
# Syntax: mimemail <subject> <file> <address>
# Note: Requires MH or nmh to be installed (uses MHN)
subject=$1
file=$2
addr=$3
echo "To: ${addr}
From: nobody
Subject: ${subject}
#application/octet-stream [${subject}] ${file}
" | /usr/bin/mh/mhbuild - > /tmp/mimemail.tmp.${$}
/usr/lib/mh/post -verbose -watch /tmp/mimemail.tmp.${$}
rm /tmp/mimemail.tmp.${$}- #!/bin/bash #Put in a cronjob to archive your lists and email them to you #set -x
datestr=date +%Y%m%d host=hostname -f file=mailman.lists.$.tar.gz filepath=~/backups/$ sendto="root" cd /var/lib/mailman tar zcf $ lists cd ~/backups ~/bin/mimemail $ $ $
The result is a tarball emailed to you by the cronjob which contains the entire lists directory hierarchy of your Mailman installation.
Last changed on Fri Jun 22 00:12:36 2007 by Jeffrey Goldberg Converted from the Mailman FAQ Wizard
This is one of many Frequently Asked Questions.