That works for a one-time migration, or perhaps via a cron-job,
but what I want is basically a constant one-way backup and it
seems replication could do it more elegantly & efficiently.
-- Daniel
You don't need to setup replication for that. See https://wiki2.dovecot.org/Migration/MailFormat
---Aki TuomiDovecot oy
With a single server - and no intent to have a second server online at-------- Original message --------From: Daniel Miller <dmiller@amfes.com>Date: 02/09/2018 04:14 (GMT+02:00)To: Dovecot Mailing List <dovecot@dovecot.org>Subject: online conversion using replication?
this time - is it possible to use the replication service to keep a
"live" backup? Or otherwise perform a storage format conversion?
I'm presently using sdbox - and considering going back to mdbox though
without SIS. My intent now is ONLY a 1-way backup, to be kept current,
and no clients will utilize the converted storage (unless/until I change).
I've successfully executed:
doveadm backup -u <username> -n inbox mdbox:/var/mail/<domain>/<user>/mdbox
For a few users - but reading the docs leads me to believe I can
automate this. But there's no explicit example for this - so I'm not
sure what to set.
Initially I'm thinking of:
dsync_remote_cmd = doveadm backup -u %u -n inbox mdbox:/var/mail/%d/%n/mdbox
and if that's right - which other services/listeners do I need to setup?
--
Daniel