Hi to all, i have two servers with dovecot 2.2.15 one is actualy on production (server A) and another that i put on production soon (server B) My goal is migrate maildir from server A and server B. How can i achieve that? I read http://wiki2.dovecot.org/Migration/Dsync but i haven't understand well where to put such configuration (in which server). Thanks in advance for any help.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, 18 Dec 2014, Davide Gmail wrote:
Hi to all, i have two servers with dovecot 2.2.15 one is actualy on production (server A) and another that i put on production soon (server B) My goal is migrate maildir from server A and server B.
if you can shut out all users and new deliveries between the hot phase of the migration, use rsync
rsync -aHAX --delete /path/to/base/on/old/server/
new_server:/path/to/base/on/new/server
- Run rsync before the hot migration to copy over most files,
- shutdown Dovecot and mail delivery
- run rsync another time (hot migration phase)
- start Dovecot and mail delivery on new server
- test migration with your own account(s)
- enable access of all users
- never allow users or mail delivery to the old server again
steps 2) and 3) prevent "duplicate messages" you read about on this list from time to time. Step 7) ensures, that both mail storages do not de-sync later.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux)
iQEVAwUBVJKqgXz1H7kL/d9rAQIufAf/SE2RPgZ6O2uWYuSDaBR8Z8quxSIpLzSV tDVfe8fI1EKVRtp3Qe4iODzFqP1LtApfvWQr+9pklp7EuRc2EGV0X9DN/0YbSm2K 4AKdWPB9qOmriBvdfKsEz+Avl68BqSuR5upP4n/4j5brLAwhlCTM+uEIIEHYlCoh jkAKTm9ZdxNhL4xk/hO4AAJYhmzaNMav77DiFjvPo30KhNVQ9BwCLfC1L5fHUYQA SWBN1HFYiPFRjzPNmmFQUCo5RpI+NT3xjue1mgM20I3+PR457vDfHKD1ZBV3Md+y oNZjJa/+jSEOJ7K5Tdz2BWUs/410lnK720/C8O5ATrkWTTKIKKe6UA== =OI/Q -----END PGP SIGNATURE-----
Hello,
i put it in 90-dsync.conf in conf.d in /etc/dovecot and run doveadm with doveadm -o mail_fsync=never -v sync -1 -R -u user@localserver.com imapc:
and it works just fine. Maybe you look at some post from randall he has the same problems to deal with.
greetings,
dominik
Am Donnerstag, den 18.12.2014, 11:09 +0100 schrieb Davide Gmail:
Hi to all, i have two servers with dovecot 2.2.15 one is actualy on production (server A) and another that i put on production soon (server B) My goal is migrate maildir from server A and server B. How can i achieve that? I read http://wiki2.dovecot.org/Migration/Dsync but i haven't understand well where to put such configuration (in which server). Thanks in advance for any help.
participants (3)
-
Davide Gmail
-
Dominik Breu
-
Steffen Kaiser