> On 17 Mar 2020, at 16.43, mabi <mabi at protonmail.ch> wrote: > > ??????? Original Message ??????? > On Tuesday, March 17, 2020 3:26 PM, Sami Ketola <sami.ketola at dovecot.fi> wrote: > >> So your rsync did not preserve mail object ctimes. Dovecot uses that for internal date if correct value is not in dovecot.index.cache. > > Oh I see, so that's quite unfortunate that rsync does not preserve the ctime. They should have a big warning in their man page... > > So what would be the correct process for moving/copying mails from one mailbox server to another in order to avoid this issue?Since you were migrating dovecot->dovecot I would have just used Dsync. Sami
??????? Original Message ??????? On Tuesday, March 17, 2020 3:57 PM, Sami Ketola <sami.ketola at dovecot.fi> wrote:> Since you were migrating dovecot->dovecot I would have just used Dsync.Thanks for the hint about dsync. It seems quite complex to setup and to use. Isn't there an easier method? What about tar'ing the files? Will this preserve the ctime?
> On 17 Mar 2020, at 17.27, mabi <mabi at protonmail.ch> wrote: > > ??????? Original Message ??????? > On Tuesday, March 17, 2020 3:57 PM, Sami Ketola <sami.ketola at dovecot.fi> wrote: > >> Since you were migrating dovecot->dovecot I would have just used Dsync. > > Thanks for the hint about dsync. It seems quite complex to setup and to use. Isn't there an easier method? What about tar'ing the files? Will this preserve the ctime?what is so complex in it? doveadm backup -u <uid> -R ssh old-server sudo /usr/bin/doveadm dsync-server -u <uid> or just use doveadm over tcp if no channel encryption is required. I've used to do this over insecure internet hence ssh. Sami