

As long as the state or the mailboxes aren't corrupted thisĪlgorithm should work perfectly. State dsync can send only the changes that happened after the previousĭsync run. Saved somewhere and being passed to the next dsync run. It relies on having the earlier dsync run's state

Fast synchronization (default) first attempts to find mailboxes that haveĬhanged, and synchronize only those.It's unnecessarily slow for incremental synchronization. This guarantees that everything will be synchronized, but
DOVECOT DSYNC BACKUP EXAMPLES FULL
Full synchronization (-f parameter) scans through all the messages in all.

There are also three different synchronization algorithms: Short period of time after a doveadm backup or doveadm syncĬommand was used to synchronize the mailboxes. Quickly diverge from the source mailbox once changes start to occur onĮither side one-way sync should therefore normally only be used within a The headers don't match and both the messages are kept in the destinationīut they're given new UIDs 7 and 8 just to be sure any client didn't getĬonfused about what UID 6 actually was. If both source and destination have UID 6, but the messages are different, UID 6 is not seen inĭestination so it's copied. UID 1.5 have identical Date+Message-ID headers. In this example, UID 1 is kept removed (in destination) because Subsequently, UID 6 isĭelivered to the source mailbox and UID 1 is expunged from the destination Example: Source mailbox has messages UID 1.5 source mailbox is sync'd Those emails are assumed to be synced correctly. As longĪs the source and destination side has matching UIDGUID mapping, UID), which is used to identify any conflicting UIDs in messages. The one-way algorithm is the same as two-way dsync algorithm except the Sync -1 once more to transfer any last new mails from the old Then switch mails to be delivered to the new mailbox and run doveadm Its main purpose is thatĭuring mailbox migration you can run doveadm backup multiple times, Work perfectly, so its use should be limited. doveadm sync -1 performs one-way synchronization, but it merges theĬhanges in destination without deleting anything.Identical after the synchronization is finished. It merges allĬhanges without losing anything. doveadm sync performs two-way synchronization.If there are anyĬhanges in the destination they will be deleted, so the destination will doveadm backup performs one-way synchronization.Remote mailboxesĬan be accessed also via IMAP protocol, which allows using dsync for mailbox All of these can be used within the same server or betweenĭifferent servers (via ssh(1) or tcp connections). It can be usedįor several different use cases: Two-way synchronization of mailboxes,Ĭreating backups of mails, and convert mailboxes from/to different mailboxįormats. d| destination DESCRIPTION ¶ĭsync is Dovecot's mailbox synchronization utility. Doveadm-sync - Dovecot's two-way mailbox synchronization utilityĭoveadm-backup - Dovecot's one-way mailbox synchronization utility SYNOPSIS ¶ĭoveadm sync
