Thanks Sam Users not using new mail server yet. Both old and new using maildir. Sounds like rsync is the way to go. Thanks for your help. James. Sent from my iPhone XI> On 4 Sep 2018, at 5:41 pm, Sami Ketola <sami.ketola at dovecot.fi> wrote: > > > >> On 4 Sep 2018, at 10.20, James Brown <jlbrown at bordo.com.au> wrote: >> >> I?d like to migrate to a new server. I only need to transfer the mail store, have already done the users. I?ve seen different recommendations: >> >> IMAP-Sync >> Rsync >> Doveadmin backup and >> dsync >> >> What are the pros and cons of each? What would be best for me? I?m thinking that Doveadmin backup is the way to go. >> >> Both old and new servers are on same network. New server is running Dovecot 2.3.2.1, old server is 2.2.32. macOS X. >> >> Does anyone have any advice or examples? > > > It depends. Are your users already receiving mails to the new server? If yes, then the only way is to use "doveadm sync -1" or data will be lost. Even then data may be lost as UID numbers might already be used in the new server. > If your users are not receiving mails to the new server it still depends. Is the mail storage format same in both servers? If yes, then it's probably fastest to use rsync. If not, then you need to use doveadm backup. > > imapsync always loses data. > > Sami > >
If you have lots of data, you can make an initial pass with rsync whilst the old server is running and another rsync pass (with --delete, use dry run to test) when you've shut down the old server to sync the changes since the initial pass. Good luck! Reio On 04/09/2018 11:40, James Brown wrote:> Thanks Sam > > Users not using new mail server yet. > > Both old and new using maildir. > > Sounds like rsync is the way to go. > > Thanks for your help. > > James. > > Sent from my iPhone XI > >> On 4 Sep 2018, at 5:41 pm, Sami Ketola <sami.ketola at dovecot.fi> wrote: >> >> >> >>> On 4 Sep 2018, at 10.20, James Brown <jlbrown at bordo.com.au> wrote: >>> >>> I?d like to migrate to a new server. I only need to transfer the mail store, have already done the users. I?ve seen different recommendations: >>> >>> IMAP-Sync >>> Rsync >>> Doveadmin backup and >>> dsync >>> >>> What are the pros and cons of each? What would be best for me? I?m thinking that Doveadmin backup is the way to go. >>> >>> Both old and new servers are on same network. New server is running Dovecot 2.3.2.1, old server is 2.2.32. macOS X. >>> >>> Does anyone have any advice or examples? >> >> It depends. Are your users already receiving mails to the new server? If yes, then the only way is to use "doveadm sync -1" or data will be lost. Even then data may be lost as UID numbers might already be used in the new server. >> If your users are not receiving mails to the new server it still depends. Is the mail storage format same in both servers? If yes, then it's probably fastest to use rsync. If not, then you need to use doveadm backup. >> >> imapsync always loses data. >> >> Sami >> >> >-- Tervitades Reio Remma MR Stuudio 25 aastat *MR Stuudio O?* Tondi 17b, 11316, Tallinn Tel +372 650 4808 Mob +372 56 22 00 33 reio at mrstuudio.ee www.mrstuudio.ee -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180904/4c19e183/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: ofhheicphkbdbgcf.png Type: image/png Size: 8540 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20180904/4c19e183/attachment-0001.png>
How do you test the new server? (Sorry, this seems like it must be obvious.? The server I set up is the first one handling this domain, so testing was easy in that it didn't have history.) Jeff Abrahamson +33 6 24 40 01 57 +44 7920 594 255 http://p27.eu/jeff/ http://transport-nantes.com/ On 04/09/18 10:49, Reio Remma wrote:> If you have lots of data, you can make an initial pass with rsync > whilst the old server is running and another rsync pass (with > --delete, use dry run to test) when you've shut down the old server to > sync the changes since the initial pass. > > Good luck! > Reio > > > On 04/09/2018 11:40, James Brown wrote: >> Thanks Sam >> >> Users not using new mail server yet. >> >> Both old and new using maildir. >> >> Sounds like rsync is the way to go. >> >> Thanks for your help. >> >> James. >> >> Sent from my iPhone XI >> >>> On 4 Sep 2018, at 5:41 pm, Sami Ketola <sami.ketola at dovecot.fi> wrote: >>> >>> >>> >>>> On 4 Sep 2018, at 10.20, James Brown <jlbrown at bordo.com.au> wrote: >>>> >>>> I?d like to migrate to a new server. I only need to transfer the mail store, have already done the users. I?ve seen different recommendations: >>>> >>>> IMAP-Sync >>>> Rsync >>>> Doveadmin backup and >>>> dsync >>>> >>>> What are the pros and cons of each? What would be best for me? I?m thinking that Doveadmin backup is the way to go. >>>> >>>> Both old and new servers are on same network. New server is running Dovecot 2.3.2.1, old server is 2.2.32. macOS X. >>>> >>>> Does anyone have any advice or examples? >>> It depends. Are your users already receiving mails to the new server? If yes, then the only way is to use "doveadm sync -1" or data will be lost. Even then data may be lost as UID numbers might already be used in the new server. >>> If your users are not receiving mails to the new server it still depends. Is the mail storage format same in both servers? If yes, then it's probably fastest to use rsync. If not, then you need to use doveadm backup. >>> >>> imapsync always loses data. >>> >>> Sami >>> >>> > > -- > Tervitades > Reio Remma > > > MR Stuudio 25 aastat > > *MR Stuudio O?* > Tondi 17b, 11316, Tallinn > Tel +372 650 4808 > Mob +372 56 22 00 33 > reio at mrstuudio.ee > www.mrstuudio.ee > > >-- Jeff Abrahamson +33 6 24 40 01 57 +44 7920 594 255 http://p27.eu/jeff/ http://transport-nantes.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20180904/dfd66be1/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: ofhheicphkbdbgcf.png Type: image/png Size: 8540 bytes Desc: not available URL: <https://dovecot.org/pipermail/dovecot/attachments/20180904/dfd66be1/attachment.png>
Thanks everyone for you help and suggestions. I think I?ll use rsync. I had a try today, and all looked fine. I created the mail store directory with only root access on the new machine. Unfortunately that means I can?t transfer using this login (no root login over ssh). I?ll have to change permissions, do the transfer, the lock it down afterwards. Thanks again for your help. James. Sent from my iPad Pro