Hello,
With the removal of the replication plugin in next releases, i'm trying
to setup automatic synchronization using doveadm sync between my master
and my replica.
I managed to make the full sync work from my replica using the following
comamnd `sync -A -N -R -f tcp:master-fqdn:12345`
However i'd like to do stateful synchronization to avoid doing the full
replication each time, and i haven't managed to do that.
I tried the following: `doveadm sync -A -N -R -s
"$(</var/lib/dovecot/sync-state)" tcp:master-fqdn:12345 >
/var/lib/dovecot/sync-state`. However this output a `doveadm(username):
Error: Saved sync state is invalid, falling back to full sync: Invalid
base64 data` for every user.
After looking at the state in /var/lib/dovecot/sync-state, i noticed
that there is one line for every user with an associated state, plus one
line with only a state. For some reason, the state is the same for every
user, except one where the state is much longer.
Do i need to run the command for each user, and give as an argument the
corresponding state ? Is it enough to run the doveadm sync command with
-A argument if i give the state in the last line outputted by doveadm
sync ? Is this the right way to do it ?
Best regards,
Bruno MATEU
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org