[Dovecot] one way replication

Pavel Stano stano at websupport.sk
Tue Apr 22 20:35:42 UTC 2014


Hi,

anyone using one way (or master/slave) replication instead of
master/master ?
There is no info in documentation but in sources
(src/doveadm/dsync/doveadm-dsync.c) i found some flags which looks like
for setting up master/slave

        switch (c) {
        case '1':
                ctx->oneway = TRUE;
                ctx->backup = TRUE;
                break;


        case 'R':
                ctx->reverse_backup = TRUE;
                break;


So on master i add -1 :
replication_dsync_parameters = -1 -d -n INBOX -l 30 -U
and on slave -1 -R:
replication_dsync_parameters = -1 -R -d -n INBOX -l 30 -U

It looks it works, if i  but question is if it is production ready.
-- 
[ Ohodnotte kvalitu mailu: http://nicereply.com/websupport/Stano/ ]

Pavel Stano | Troubleshooter

http://WebSupport.sk
*** BERTE A VYCHUTNAVAJTE ***

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140422/4d9e5479/attachment.sig>


More information about the dovecot mailing list