Gentlemen,
I guess my mistake was to use *-R* option, that works similar to *-1* and your messages can get lost.
-R Do a reverse sync. Normally, messages would be pushed from the local system to the destination (remote). This option reverses the flow, and will instead pull messages from the remote to the local storage.
doesn't say clearly that it works like a backup mode and data can be lost
Best regards, Sergey Schwartz
Senior System Administrator Biblio Globus Tour Operator www.bgoperator.ru
T: +7 495 5042500 ext 1532 E: sergey.schwartz@bgoperator.com
15.03.2016 15:41, Sergey Schwartz пишет:
Gents,
I'm relocating mailboxes to a new server. Before switching over to a new server I ran syncing a few times without any issues
first I sync files with rsync from the old server to have a local copy, then I sync mailboxes with dsync
/usr/bin/doveadm -Dv sync -u $MBOX -R "sdbox:/srv/vmail/temp/srv/srv.bgoperator.ru/${MBOX}:DIRNAME=DbOx-mAiLs"
After switching over smtp transport and running dsync as above a few mailboxes were deleted
dsync(xxx): Warning: Deleting mailbox 'INBOX': UID=1 already exists locally for a different mail: GUIDs don't match (c005a206e1c6e756f02700003a8929e2 vs 0ba1c03796f5dc524c6d0000b4ca29ec) dsync(xxxx): Warning: Deleting mailbox 'INBOX': UID=8855 GUID=80d5841f0fe2e35677630000b4ca29ec is missing locally dsync(xxxxx): Warning: Deleting mailbox 'INBOX': UID=7508 already exists locally for a different mail: GUIDs don't match (1e03d72074d8e756403700003a8929e2 vs 1dc47a3ac5c4e7562a290000b4ca29ec) dsync(xxxxxx): Warning: Deleting mailbox 'INBOX': UID=8238 GUID=2a6a803bd33fe156f85e0000b4ca29ec is missing locally
and a few other mailboxes seemed to fail to sync
dsync(xxxxxxx): Warning: Mailbox changes caused a desync. You may want to run dsync again.
Is it a bug or I am doing something wrong ?