Did you try doing it via this method posted in the other thread?
The “right way” would be to use duplicity – but as stated above there’s versioning stuff to worry about.
basically what I’ve done in the past is something like this:
tar -czvf user-data.tar.gz /home/user-data/
Then scp that file to the new server.
scp user-data.tar.gz root@1.1.1.1:/home/
Where 1.1.1.1 is your ip address of the new box
Then decompress it with
tar -xvf user-data.tar.gz
If you need to move it around because you decompressed it in the wrong spot you can always do a
mv /user-data/ /home/user-data
then just run the installer, you’ll want to use the exact same “box name” as you had before, and the same master email address. once you log in with that after setup is complete you will notice all the other usernames are there, aliases, domains, etc. Mail for the master email (and other email addresses) will be there also…
curl -s https://mailinabox.email/setup.sh | sudo bash
yeah - this is unsupported, but so is moving from 0.30 to 0.68… I bet it would work though
I’m not sure how much has changed in the users.sqlite file in /home/user-data/mail between 0.30 and 0.68 but I’m betting on – not a lot if anything.
I intend to use this method again once I figure out how to get another box from 18.04 LTS (quota’s fork) to 22.04LTS with quotas.
Talking to a developer to see if he can help me rework jrsupplee’s quota fork back into 22.04LTS (v0.68+) and not clobber files and hopefully merge with head of this main project.