Hello, I'm needing to migrate my dovecot installation it's 2.3 on FreeBSD 12.1 to a new server. I'd ideally like to back up all the mails in the maildir location, copy that over, load in my configuration files, and bring the system back up. I doubt it's that easy, any pitfalls I should watch out for? Thanks. Dave.
* David Mehler:> I'd ideally like to back up all the mails in the maildir location, > copy that over, load in my configuration files, and bring the system > back up.I don't think this qualifies as "ideal" for migration. My recommendation is to set up the new server and configure Dovecot replication (see Wiki). If you configured things correctly, migration will happen without further intervention, and if there is a problem, you can resolve it in your own time, without damaging the existing server and data. -Ralph
> On 29/05/2020 20:12 Ralph Seichter <abbot at monksofcool.net> wrote: > > > * David Mehler: > > > I'd ideally like to back up all the mails in the maildir location, > > copy that over, load in my configuration files, and bring the system > > back up. > > I don't think this qualifies as "ideal" for migration. My recommendation > is to set up the new server and configure Dovecot replication (see Wiki). > > If you configured things correctly, migration will happen without > further intervention, and if there is a problem, you can resolve it in > your own time, without damaging the existing server and data. > > -RalphIf your directory structure *and* namespace structure stays the same, you can rsync files over. If you are going to change anything, do as Ralph suggests. Aki