-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 4 Feb 2013, Frank wrote:

Steffen Kaiser wrote:
On Fri, 1 Feb 2013, Frank Lienhard wrote:

My first attempt was tho simply rsync the Maildirs along with the homes. Both deovecot versions are set up with the maildir format, but this results in ~30% doublicated mails on the new server.

Er, a) you got 30% more files on the new server (aka target), than you have on the old server (aka source)??

b) Or do you see them, when you login via IMAP to the the new server?

===

If a), did you ran rsync, while the source host is in production still? Do you use "H" option to preserve hardlinks and/or "--delete" if you run rsync multiple times?

If b), did you verified the duplication with a IMAP client, that does _no_ caching on its own or with a fresh and empty local cache / profile / ... .

I used -avu, where:
-a equals: -rlptgoD (no -H,-A,-X)
-u  skip file that are newer on the receiver

I stopped the getmail cronjob to ensure that no new messages get fetched while sync. After that I created a new account in Icedove and at first all went well, but after a while I got duoplicates of abou 900 old messages.
I admit I only looked that up from Icedove and not in the dir from cli.

When you rsync'ed multiple times, you _must_ use "--delete" as well, because in Maildir status changes, such as "read", "seen", "replied", lables a.s.o., are reflected by changing the filename of the messages. Hence, without "--delete" you get the same message multiple times with different status or labels.

I tried it myself and had 1:1 copies of the mailboxes, regardless if I use the same or a fresh profile in Thunderbird.

I use: rsync -essh -vaH --delete from/ target:/.../to/

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBURIsEV3r2wJMiz2NAQLNQwgAwRiTbnrPlgmKIYUMwDVWo5tztighb8+b
WoYjr4XkK5SkxJH1ZUnsaNzoKYC0j/Zf+PE/kK9C32X+itkIhH8f3L8jITCzj3RR
kl6/j/OE3hnMDJNSfoYabmdpzc9knXabj04GVbZNW0cwXX33eU3CQd9yHbno3Raq
DVsnCIe23L7sO7giNORUIpZJuhzfri8YpvAdZsypaK0ZfMXbBxYN6lPaoEPkYcKH
T91EvjbeGKJGpAKokjtyCIrBbvYPW6ARyD/y7G7qrGFvUqqZTzhEUbEPuZ6kCkFS
Zc5bmv90BcQ/O1U6U2jH72A3UeCsCRBl9BWp9Cvs5P5Pbi1kyzvZrA==
=GtYM
-----END PGP SIGNATURE-----

Reply via email to