Differences between revisions 2 and 4 (spanning 2 versions)
Revision 2 as of 2008-07-31 14:11:30
Size: 1540
Editor: dunxd
Comment:
Revision 4 as of 2009-10-11 08:32:29
Size: 1550
Editor: msapiro
Comment: Migrated to Confluence 4.0
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma page-filename DOC/versions/8978510 #pragma page-filename DOC/versions/4030699
Line 3: Line 3:
Line 11: Line 12:
  # Syntax: mimemail &lt;subject&gt; &lt;file&gt; &lt;address&gt;   # Syntax: mimemail <subject> <file> <address>
Line 24: Line 25:
  " | /usr/bin/mh/mhbuild - &gt; /tmp/mimemail.tmp.${$}   " | /usr/bin/mh/mhbuild - > /tmp/mimemail.tmp.${$}
Line 30: Line 31:
    * {{{
Line 37: Line 38:
  file=mailman.lists.$.tar.gz
  filepath=~/backups/$
  file=mailman.lists.${datestr}.tar.gz
  filepath=~/backups/${file}
Line 42: Line 43:
  tar zcf $ lists   tar zcf ${filepath} lists
Line 44: Line 45:
  ~/bin/mimemail $ $ $   ~/bin/mimemail ${file} ${filepath} ${sendto}
}}}
Line 49: Line 50:
''Last changed on Fri Jun 22 00:12:36 2007 by'' Jeffrey Goldberg
<<Color2(Converted from the Mailman FAQ Wizard, col=darkgreen)>>
''Last changed on Fri Jun 22 00:12:36 2007 by'' Jeffrey Goldberg<<BR>> Converted from the Mailman FAQ Wizard

4.18. How do I backup my lists and their configurations/membership rosters?

See also FAQ 4.6 at 4.06 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.${datestr}.tar.gz
  filepath=~/backups/${file}
  sendto="root"

  cd /var/lib/mailman
  tar zcf ${filepath} lists
  cd ~/backups
  ~/bin/mimemail ${file} ${filepath} ${sendto}

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.

MailmanWiki: DOC/4.18 How do I backup my lists and their configurations-membership rosters? (last edited 2015-01-31 02:36:58 by msapiro)