Hi, I?m migrating an old Zarafa-installation to a dovecot using mdbox and sis on Debian Jessie. To copy over the emails, I use doveadm backup on the new box - or more precisely: vmail# doveadm -v -o imapc_user=$user -o imapc_password=$pass -o imapc_host=$host -o imapc_features=rfc822.size -o imapc_port=993 -o mailbox_list_index=no -o imapc_ssl_verify=no backup -R -x "Public folders*" -x "Public folders/*" -u $user imapc: For each invoke of doveadm backup -R, the local (new) mailbox gets wiped and all mails are retransferred - so far, so good. I?d like to use "doveadm sync -1? as per the manpage to keep the downtime short, however sync doesn?t like the -R option: sync: invalid option -- 'R' doveadm sync [-u <user>|-A] [-S <socket_path>] [-1fPU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g <mailbox_guid>] [-n <namespace> | -N] [-x <exclude>] [-s <state>] -d|<dest> If I understand it correctly, without -R it would mean that doveadm sync would incorporate the changes from the local dovecot-mailbox into the remote imapc:-Mailbox, which is the opposite of what I want. Dovecot version is current head as of yesterday. Is what I?m trying to do even possible with doveadm sync? Kind regards, Lukas
On 05 Apr 2016, at 13:49, Lukas Kolbe <lkolbe at willert.de> wrote:> > For each invoke of doveadm backup -R, the local (new) mailbox gets wiped and all mails are retransferred - so far, so good. I?d like to use "doveadm sync -1? as per the manpage to keep the downtime short, however sync doesn?t like the -R option: > > sync: invalid option -- 'R' > doveadm sync [-u <user>|-A] [-S <socket_path>] [-1fPU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g <mailbox_guid>] [-n <namespace> | -N] [-x <exclude>] [-s <state>] -d|<dest> > > If I understand it correctly, without -R it would mean that doveadm sync would incorporate the changes from the local dovecot-mailbox into the remote imapc:-Mailbox, which is the opposite of what I want.I completely forgot doveadm sync -1 when I removed -R :( Reverted original "fix": https://github.com/dovecot/core/commit/eba17ecf3a70c10010cd893f3c1a0c1ddd9c5bc0 This is what it should have been: https://github.com/dovecot/core/commit/53c42948d25b1593c1d16a71799c0ffe8d80aa79
Hi,> Am 06.04.2016 um 21:18 schrieb Timo Sirainen <tss at iki.fi>: > > On 05 Apr 2016, at 13:49, Lukas Kolbe <lkolbe at willert.de> wrote: >> >> For each invoke of doveadm backup -R, the local (new) mailbox gets wiped and all mails are retransferred - so far, so good. I?d like to use "doveadm sync -1? as per the manpage to keep the downtime short, however sync doesn?t like the -R option: >> >> sync: invalid option -- 'R' >> doveadm sync [-u <user>|-A] [-S <socket_path>] [-1fPU] [-l <secs>] [-r <rawlog path>] [-m <mailbox>] [-g <mailbox_guid>] [-n <namespace> | -N] [-x <exclude>] [-s <state>] -d|<dest> >> >> If I understand it correctly, without -R it would mean that doveadm sync would incorporate the changes from the local dovecot-mailbox into the remote imapc:-Mailbox, which is the opposite of what I want. > > I completely forgot doveadm sync -1 when I removed -R :( > > Reverted original "fix": https://github.com/dovecot/core/commit/eba17ecf3a70c10010cd893f3c1a0c1ddd9c5bc0 > > This is what it should have been: https://github.com/dovecot/core/commit/53c42948d25b1593c1d16a71799c0ffe8d80aa79 >Timo, thanks a lot - this seems to work now as expected! Kind regards, Lukas