[Dovecot] dovecot and unison

Michael Grimm trashcan at odo.in-berlin.de
Tue Apr 3 20:29:41 EEST 2012


Hi --

[Sorry for my private response, instead of public one]

On 03.04.2012, at 01:02, FZiegler wrote:

> Now I'd like if possible, to replicate this setup on my laptop and keep
> both in sync with unison (http://www.cis.upenn.edu/~bcpierce/unison/),
> which I am already using to sync much of my home dir about once a day.
> 
> I found at least one positive message regarding this topic
> (http://dovecot.org/list/dovecot/2010-April/048092.html), but I feel I
> could use some more advice.

I used to sync my two server's maildirs for some years, but I moved to
dsync mirroring some months ago, and now I'm into using replicator/dsync
(see archive of March 2012).

Unsion mirroring is working in general, but sometimes you might realize
some duplicates being produced. Not bad, but it happens. I did realize
the same with using dsync mirror instead. It's much better with the new
replicator/dsync mirroring scheme, but it's not perfect, yet. (Again, see
ML archives of the last weeks). 

> Namely, which of the ancillary files should I be syncing (or perhaps
> deleting before sync)? In addition to the mails themselves I'm seeing:
> 
> -rw-------   1 fz  501     13 Apr  1 17:10 dovecot-keywords
> -rw-------   1 fz  501   2483 Apr  1 17:10 dovecot-uidlist
> -rw-------   1 fz  501   1040 Mar 29 14:50 dovecot.index
> -rw-------   1 fz  501  44032 Apr  1 17:10 dovecot.index.cache
> -rw-------   1 fz  501   9772 Apr  1 17:10 dovecot.index.log
> 
> and at the top level (in .local/var/Maildir/):
> 
> -rw-------   1 fz  501      8 Apr  1 17:10 dovecot-uidvalidity
> -r--r--r--   1 fz  501      0 Apr  1 17:10 dovecot-uidvalidity.4efb323d
> -rw-------   1 fz  501   3288 Apr  1 17:10 dovecot.mailbox.log
> -rw-------   1 fz  501   4104 Mar 28 10:53 dovecot.mailbox.log.2

I used ...

	ignore = Name dovecot*
	ignore = Regex .*/tmp$
	ignore = Regex .*/\.Drafts$

… to ignore all of them. When runnig mirroring for the very first time, I
started with one empty maildir at one server, IIRC. You better check that
with a test maildir beforehand.

> -rw-------   1 fz  501   5114 Apr  1 17:10 subscriptions

That became mirrored.

Regards,
Michael



More information about the dovecot mailing list