[ILUG] Script to move Maildir content

Patrick O'Connor patrick.oconnor at sysadmin.ie
Tue Jul 7 12:25:55 IST 2009


Thanks for all the responses, it looks like I'll be building a bash script
alright. I have the bulk of the mails backed up onto the new machine so
won't need to be doing a big transfer across the network. Any mails since
the backup will be brought across by modifying the script to only include
mails from a certain date.
I'll delve into the manuals for find and cpio to see what I can come up
with.

Patrick

2009/7/7 Kenn Humborg <kenn at bluetree.ie>

> > Patrick O'Connor wrote:
> > > I've got a bunch of mails (in Maildir format) to move from one server
> to
> > > another.
>
> First off, I'd suggest using rsync if you can for the file
> transfer.  That way, you can very easily pick up an interrupted
> transfer.  --exclude=.Trash/ is your friend.  Once you have
> the transfer done, script a rename of the per-user folders
> and chown of the files as per your username mapping file.
>
> Secondly, are you really sure you don't want the /new and /tmp
> Maildir folders?  They'll probably be empty, but it's better
> to be safe than sorry.
>
> Later,
> Kenn
>
>


-- 
Blog: http://patrickoconnor.ie/blog
Company: http://www.synchronicity.ie



More information about the ILUG mailing list