Keep two IMAP servers in Sync

Paul Oldham paul at the-hug.org
Thu Nov 6 18:13:25 CET 2008


On Thu, November 6, 2008 17:01, Longman said:

> * Paul Oldham wrote:
>
>> Well in that case rsync is a valid solution as Courier uses and extended
>> version of Maildir - so it's all just files and directories, no fancy
>> database like Cyrus.
>>
>> [...]
>
> I was more worried about what would happen if I try and rsync an active
> system where files are changing constantly. I can try a cron job at 4am
> or something but I don't want to copy any files that are in an
> invalid/incomplete state and end up with an unusable IMAP Maildir at the
> other end.

I think the worse that could happen is that an email could be corrupted,
but I'm assuming that in the even of an emergency you would have time to
do a 'kill' rather than just pulling the plug, so I'm hope rsync would be
pretty atomic.

But if you're worried imapsync does look like it could be your friend.

Funnily enough we backup a customer's Cyrus IMAP mailbase over rsync every
night and, having looked at imapsync, I may now switch to using that!
-- 
Paul




More information about the CLUG mailing list