Patrick O'Connor wrote
> I've got a bunch of mails (in Maildir format) to move from one server to
> another. Only problem is that there's lots of them (60 accounts in 5
> different domains, 70GB total). I'm trying to dip my toe in the waters of
> shell scripting but am a bit lost. If anyone can help out I'd be glad to
> provide suitable beverages at the next potd!
>From memory there is a tool in WUImap that does exactly this using the imap
protocol to move email collections from one server to another... its a vague
recollection of it having been mentioned on the courier-mta mailing list a
few years back... a google search might throw it up for you.
You could of course nfs share the folders from the old server to the new and
do a depth first search and cpio -pdm to move them across, something like
this might work
find . -depth -print | cpio -pdm /path/to/target
and with that you won't loose any file attributes etc.
Not a script answer but maybe theres something useful for you there.
Paul.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!