Migrate maildir between servers dovecot
Steffen Kaiser
skdovecot at smail.inf.fh-brs.de
Thu Dec 18 10:20:49 UTC 2014
-----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
1) Run rsync before the hot migration to copy over most files,
2) shutdown Dovecot and mail delivery
3) run rsync another time (hot migration phase)
4) start Dovecot and mail delivery on new server
5) test migration with your own account(s)
6) enable access of all users
7) 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-----
More information about the dovecot
mailing list