migrating dovecot to new server
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@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.
-Ralph
If 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
I did what Aki said. Actually I moved it all to a new server and to docker containers. From Dovecot 2.2 to 2.3. And it worked fine. Of course one always forget something - the path for the certificates, the different directory for mounting storage, etc.
But am surprise and happy that it worked very well.
__ Francis Augusto Medeiros-Logeay Oslo, Norway Sent from a mobile device / Enviado a partir de dispositivo móvel
On 29 May 2020, at 19:33, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 29/05/2020 20:12 Ralph Seichter <abbot@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.
-Ralph
If 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
Hello,
Thanks, the directory structure and files will all be the same so i'll just rsync.
Thanks. Dave.
On 5/29/20, Francis Augusto Medeiros-Logeay <r_f@med-lo.eu> wrote:
I did what Aki said. Actually I moved it all to a new server and to docker containers. From Dovecot 2.2 to 2.3. And it worked fine. Of course one always forget something - the path for the certificates, the different directory for mounting storage, etc.
But am surprise and happy that it worked very well.
__ Francis Augusto Medeiros-Logeay Oslo, Norway Sent from a mobile device / Enviado a partir de dispositivo móvel
On 29 May 2020, at 19:33, Aki Tuomi <aki.tuomi@open-xchange.com> wrote:
On 29/05/2020 20:12 Ralph Seichter <abbot@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.
-Ralph
If 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
participants (4)
-
Aki Tuomi
-
David Mehler
-
Francis Augusto Medeiros-Logeay
-
Ralph Seichter