[ILUG] Script to move Maildir content
patrick.oconnor at sysadmin.ie
Tue Jul 7 13:00:08 IST 2009
2009/7/7 Rory Browne <rbmlist at gmail.com>
> > This is exactly why you use rsync - no need to mess with find, just run
> > rsync again and it will only copy what's new.
> rsync would probably be better in this case than find/cpio. I was
> half-asleep when I wrote that last-night, but find/cpio would have
> been much better than any of the other solutions, which got into
> associative arrays etc, that were presented earlier.
Ok so its looking like this:
1. write a script to copy the bulk of the old mails that have already been
copied to the new server. (using cp, find and some way to link old usernames
to new usernames)
2. Copy the remaining emails not copied (as the old server is still live)
using rsync and some way to link the old usernames to the new.
1. Just rsync the lot and don't use the maildirs already copied to the new
Either way I still need a way to link the old usernames to the new and that
looks like I'll need to use some sort of a table. How would I go about that?
> >> I'll delve into the manuals for find and cpio to see what I can come up
> >> with.
> > Repeat after me - rsync, rsync, rsync.
> Ok ok ok - you win.
More information about the ILUG