[Dovecot] BestPractice to migrate imap mailbox from one machine to another
Hi list,
currently I use dovecot v1.2.15 with maildir++ mailboxes. (Debian Squeeze) I want to set up a different server with dovecot v2, also maildir++ mailboxes. (also Debian Squeeze)
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
Greetz, Tobias
Am 09.09.2011 15:14, schrieb Tobias Hachmer:
Hi list,
currently I use dovecot v1.2.15 with maildir++ mailboxes. (Debian Squeeze) I want to set up a different server with dovecot v2, also maildir++ mailboxes. (also Debian Squeeze)
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
Greetz, Tobias
i used imapsync in a bash script http://ks.lamiral.info/imapsync/ at a massive migration
Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Fri, 09 Sep 2011 15:22:54 +0200, Robert Schetterer wrote:
Am 09.09.2011 15:14, schrieb Tobias Hachmer:
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
i used imapsync in a bash script http://ks.lamiral.info/imapsync/ at a massive migration
ok, but this tool is not free of charge. Are there any known problems just copying the mailboxes with scp or rsync?
Tobias
Have you tried dsync (part of dovecot)? I don't know if it works for migration to a different (major) version of dovecot, but it's a nice tool. And it works also over ssh.
Giulio
Hope this helps.
Il 09/09/2011 15.34, Tobias Hachmer ha scritto:
On Fri, 09 Sep 2011 15:22:54 +0200, Robert Schetterer wrote:
Am 09.09.2011 15:14, schrieb Tobias Hachmer:
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
i used imapsync in a bash script http://ks.lamiral.info/imapsync/ at a massive migration
ok, but this tool is not free of charge. Are there any known problems just copying the mailboxes with scp or rsync?
Tobias
-- Giulio Casella giulio at dsi.unimi.it System and network manager Computer Science Dept. - University of Milano
On Fri, 09 Sep 2011 15:42:57 +0200, Giulio Casella wrote:
Have you tried dsync (part of dovecot)? I don't know if it works for migration to a different (major) version of dovecot, but it's a nice tool. And it works also over ssh.
Yeah, I read the sections in the dovecot v2 wiki, but I don't get how to use for migration. As far as I understood it's to keep several dovecot server at a unique data bank. An well, can I use it between dovecot v1.2 and v2?
Tobias
This is working for me:
root@oldserver # dsync -v -D -u $user backup ssh newserver dsync -u $user
where $user is a username. oldserver and newserver can also have different mailbox format (in my case was mbox -> maildir)
Regards, gc
-------- Messaggio originale -------- Oggetto: Re: [Dovecot] BestPractice to migrate imap mailbox from one machine to another Data: Fri, 09 Sep 2011 15:50:49 +0200 Mittente: Tobias Hachmer <tobias@hachmer.de> A: <dovecot@dovecot.org>
On Fri, 09 Sep 2011 15:42:57 +0200, Giulio Casella wrote:
Have you tried dsync (part of dovecot)? I don't know if it works for migration to a different (major) version of dovecot, but it's a nice tool. And it works also over ssh.
Yeah, I read the sections in the dovecot v2 wiki, but I don't get how to use for migration. As far as I understood it's to keep several dovecot server at a unique data bank. An well, can I use it between dovecot v1.2 and v2?
Tobias
-- Giulio Casella giulio at dsi.unimi.it System and network manager Computer Science Dept. - University of Milano
On Fri, 09 Sep 2011 17:16:57 +0200, Giulio Casella wrote:
This is working for me:
root@oldserver # dsync -v -D -u $user backup ssh newserver dsync -u $user
where $user is a username. oldserver and newserver can also have different mailbox format (in my case was mbox -> maildir)
Thanks for your replies, I will test first the simple copy of the maildirs when the new server is set up. So thanks a lot.
Greetz, Tobias
Am 09.09.2011 17:16, schrieb Giulio Casella:
This is working for me:
root@oldserver # dsync -v -D -u $user backup ssh newserver dsync -u $user
where $user is a username. oldserver and newserver can also have different mailbox format (in my case was mbox -> maildir)
Regards, gc
yes, dsync should work too, but never tested it
-------- Messaggio originale -------- Oggetto: Re: [Dovecot] BestPractice to migrate imap mailbox from one machine to another Data: Fri, 09 Sep 2011 15:50:49 +0200 Mittente: Tobias Hachmer <tobias@hachmer.de> A: <dovecot@dovecot.org>
On Fri, 09 Sep 2011 15:42:57 +0200, Giulio Casella wrote:
Have you tried dsync (part of dovecot)? I don't know if it works for migration to a different (major) version of dovecot, but it's a nice tool. And it works also over ssh.
Yeah, I read the sections in the dovecot v2 wiki, but I don't get how to use for migration. As far as I understood it's to keep several dovecot server at a unique data bank. An well, can I use it between dovecot v1.2 and v2?
Tobias
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
Am 09.09.2011 15:34, schrieb Tobias Hachmer:
On Fri, 09 Sep 2011 15:22:54 +0200, Robert Schetterer wrote:
Am 09.09.2011 15:14, schrieb Tobias Hachmer:
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
i used imapsync in a bash script http://ks.lamiral.info/imapsync/ at a massive migration
ok, but this tool is not free of charge.
? you should donate but you can use it without too, i.e its part of ubuntu
Are there any known problems just copying the mailboxes with scp or rsync?
may work too, with few problems depending on your setup, but its no real way if you make migration on the fly in my eyes
better setup the new server, do tests, make imapsync
Tobias
-- Best Regards
MfG Robert Schetterer
Germany/Munich/Bavaria
On Fri, 09 Sep 2011 20:26:59 +0200, Robert Schetterer wrote:
i used imapsync in a bash script http://ks.lamiral.info/imapsync/ at a massive migration
ok, but this tool is not free of charge.
? you should donate but you can use it without too, i.e its part of ubuntu
Oh, cool, thanks for the hint. Yes, I will test simple copy, imapsnc and dsync. Thanks a lot.
Tobias
On 09/09/11 09:34, Tobias Hachmer wrote:
On Fri, 09 Sep 2011 15:22:54 +0200, Robert Schetterer wrote:
Am 09.09.2011 15:14, schrieb Tobias Hachmer:
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
i used imapsync in a bash script http://ks.lamiral.info/imapsync/ at a massive migration
ok, but this tool is not free of charge. Are there any known problems just copying the mailboxes with scp or rsync?
Tobias Hachmer schreef:
Hi list,
currently I use dovecot v1.2.15 with maildir++ mailboxes. (Debian Squeeze) I want to set up a different server with dovecot v2, also maildir++ mailboxes. (also Debian Squeeze)
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
Greetz, Tobias I did the same thing, with no know issues so far.
My old server was running dovecot 1.2.x and i coppied the whole maildir structure to the other machine. Then started Dovecot 2.x and all was fine.
Should be the same as instlling 2.0 over the old 1.2.x version, then it uses the old maildir also.
Well test it i would say. Just do the copy, and try if everything works. then do it for a final migration.
Gr Johan Hendriks
Johan Hendriks wrote:
Tobias Hachmer schreef:
Hi list,
currently I use dovecot v1.2.15 with maildir++ mailboxes. (Debian Squeeze) I want to set up a different server with dovecot v2, also maildir++ mailboxes. (also Debian Squeeze)
What is the best way to copy the existing mailboxes from the older machine running dovecot v1.2.15 to the new naked machine?
Greetz, Tobias I did the same thing, with no know issues so far.
My old server was running dovecot 1.2.x and i coppied the whole maildir structure to the other machine. Then started Dovecot 2.x and all was fine.
Should be the same as instlling 2.0 over the old 1.2.x version, then it uses the old maildir also.
Well test it i would say. Just do the copy, and try if everything works. then do it for a final migration.
Gr Johan Hendriks
Yes.
So long as you're using same file structure, just tar + compress your Maildir hierarchy + scp it to your new machine + untar/uncompress...
You'll be good to go.
-- Love feeling your best ever, all day, every day? Click http://RadicalHealth.com for the easy way!
participants (6)
-
David Favor
-
Giulio Casella
-
Johan Hendriks
-
Michael Orlitzky
-
Robert Schetterer
-
Tobias Hachmer