migrating mailman lists

Hello,
I've recently moved to a new server. It is an Xserve G5 running
10.4.3 OSX.
I'd like to migrate the mailman lists from the old server (Xserve G4).
Does anyone have experience migrating lists? If so, please let me know what procedure you followed.
Thanks,
Kelsey

Quoting Kelsey Forsythe (forsythe@chem.iupui.edu):
I've recently moved to a new server. It is an Xserve G5 running
10.4.3 OSX. I'd like to migrate the mailman lists from the old server (Xserve G4).Does anyone have experience migrating lists? If so, please let me know what procedure you followed.
If you have command line access to both servers, it's dead easy. I've done it twice. Here is the procedure I followed. Note that your file paths may differ because OS X does strange things:
- Copied all of /var/lib/mailman/lists/ from the old server to the new one.
- Fixed the permissions with "chown -R list.list /var/lib/mailman/lists/"
- Fixed the urls for the new one with "withlist -l -r fix_url [listname]" for each list. (Only necessary if the new server has a different domain name than the old one - one time I was moving from xcski.com to list.xcski.com and the other time I was keeping the same list.xcski.com url.)
- Copied all /var/lib/mailman/archives/private/*mbox/*mbox to the new server.
- Fixed the permissions with "chown -R list.list /var/lib/mailman/archives/private"
- Regenerated the archives using "/var/lib/mailman/bin/arch [listname]" for each list. Note that if your archives are big, this process can consume all the memory in your system and then some, so you may have to split the mbox files up and regenerate the list archives in peices or use the "--start" and "--end" options to arch.
-- Paul Tomblin <ptomblin@xcski.com> http://blog.xcski.com/ We'll burn that bridge when we come to it.

On Jan 3, 2007, at 5:06 AM, Kelsey Forsythe wrote:
I've recently moved to a new server. It is an Xserve G5 running 10.4.3 OSX. I'd like to migrate the mailman lists from the old server (Xserve G4).
Does anyone have experience migrating lists? If so, please let me know what procedure you followed.
My experience was similar to Paul's: dead easy. My steps were
slightly different; and I had been running the new Xserve with some
test lists before copying the files over. These are my notes for the
final switchover:
on old lists
mailmanctl stop
on old list server, copy files to personal workstation:
sudo rsync -a --delete -e ssh /home/mailman/lists
user@workstation:Desktop/lists/ --progress
sudo rsync -a --delete -e ssh /home/mailman/data
user@workstation:Desktop/lists/ --progress
sudo rsync -a --delete -e ssh /home/mailman/archives
user@workstation:Desktop/lists/ --progress
shutdown old lists hardware
on new lists:
--copy from personal workstation to staging area
sudo rsync -a --delete -e ssh user@workstation:Desktop/lists/lists /
var/mailman/new --progress sudo rsync -a --delete -e ssh user@workstation:Desktop/lists/data / var/mailman/new --progress sudo rsync -a --delete -e ssh user@workstation:Desktop/lists/ archives /var/mailman/new --progress
--fix staging area
cd /var/mailman/new
rm -r lists/mailman
rm data/adm.pw data/aliases data/aliases.db data/master-qrunner.pid
data/sitelist.cfg sudo chown -R mailman:mailman /var/mailman/new
--fix symbolic links in public directory
cd /var/mailman/new/archives/public
sudo ~/bin/fixlinks *
--move from staging area to live
sudo scp -pr /var/mailman/lists /var/mailman/data /var/mailman/
archives /Users/cole/mailmanvar sudo mv /var/mailman/new/lists/* /var/mailman/lists sudo mv /var/mailman/new/data/* /var/mailman/data sudo mv /var/mailman/new/archives/* /var/mailman/archives
--add alias lines to /var/mailman/data/aliases
--note that I had kept a list of lists in FileMaker, along with the
necessary aliases for each --this is what I copied cd sudo scp -p user@workstation:Desktop/lists/list_aliases . sudo vi /var/mailman/data/aliases :r list_aliases :wq sudo /usr/sbin/postalias /var/mailman/data/aliases
--update data files
sudo /usr/share/mailman/bin/update
sudo bin/withlist -l -a -r fix_url -- -v
--add IP address (change from test-ip to live-ip)
sudo changeip - test-ip live-ip
sudo networksetup -setmanual "Built-in Ethernet 1" live-ip netmask
gateway sudo networksetup -getinfo "Built-in Ethernet 1"
stop and start postfix from server admin?
The fixlinks script referenced above, because after the copy the
public alias links didn't work, as they were pointing to the wrong
directory:
#!/usr/bin/perl
$privatebase = "/var/mailman/archives/private"; while ($item = shift) { $reallink = "$privatebase/$item"; print "Changing $item to $reallink\n"; unlink($item); symlink($reallink, $item); }
Jerry jerry@sandiego.edu http://home.sandiego.edu/~jerry/ Maher 190/x8773
"The major difference between a thing that might go wrong and a thing
that cannot possibly go wrong is that when a thing that cannot
possibly go wrong goes wrong it usually turns out to be impossible to
get at and repair."--Douglas Adams (Mostly Harmless)
participants (3)
-
Jerold Stratton
-
Kelsey Forsythe
-
Paul Tomblin