[SOLVED] Upgrade from v0.27 to v0.48

Just wanted to check,

I am upgrading from v0.27 to v0.48 and none of the users of my BOX have any need to keep Nextcloud data.

Can I proceed with upgrade to v0.48 or do I still need to upgrade to v0.30 and then migrate to v0.48?

Reading this

I take that there is no other way.

So I am upgrading to v0.30 and then re-installing Ubuntu 18.04 and importing backup … from v0.30

So I have tried to upgrade from v0.28 to v0.48 and that did not work as expected …
Here is what has worked for me:

upgrade to latest version running on 14.04 which is 0.30
mv ./mailinabox ./mailinabox.v28
git clone -b v0.30 https://github.com/mail-in-a-box/mailinabox.git
cd mailinabox
git checkout
setup/start.sh

BackUp everything

Get the 18.04 running

Install v0.40
mv ./mailinabox ./mailinabox.v30
sudo git clone -b v0.40 https://github.com/mail-in-a-box/mailinabox.git
cd mailinabox
sudo git checkout
sudo setup/start.sh

Restore your BackUp of MIAB (I have back up to NAS)
cd /mnt/NAS/.MIAB/20200914T145140Z-v0.30
export PASSPHRASE=$(cat secret_key.txt)
sudo -E duplicity restore --force file:///mnt/NAS/.MIAB/20200914T145140Z-v0.30/backup/encrypted /home/user-data/

Run the script
~/mailinabox/setup/start.sh

Remove/Backup old certs
cd /home/user-data/
sudo tar cpf old-ssl.tar ssl
sudo rm -r ./ssl/*

Generate new ones (possibly before they expire, or will it make a difference??)
~/mailinabox/management/ssl_certificates.py
1 Like

See this post why you need to update major version one by one

and this one

List of version/Tags:

#v0.41 - OK
cd #
~/mailinabox/management/backup.py
mv ./mailinabox ./mailinabox.v40
sudo git clone -b v0.41 GitHub - mail-in-a-box/mailinabox: Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
cd mailinabox
sudo git checkout
sudo setup/start.sh

  • Upgraded Nextcloud from 13.0.6 to 14.0.6.

#v0.42 - OK
cd #
~/mailinabox/management/backup.py
mv ./mailinabox ./mailinabox.v41
sudo git clone -b v0.42 GitHub - mail-in-a-box/mailinabox: Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
cd mailinabox
sudo git checkout
sudo setup/start.sh

  • Upgraded Nextcloud from 14.0.6 to 15.0.8 (with Contacts from 2.1.8 to 3.1.1 and Calendar from 1.6.4 to 1.6.5).

#v0.42b - ERROR Cert
cd #
~/mailinabox/management/backup.py
mv ./mailinabox ./mailinabox.v41
sudo git clone -b v0.42b GitHub - mail-in-a-box/mailinabox: Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
cd mailinabox
sudo git checkout
sudo setup/start.sh

  • Upgraded Nextcloud from 14.0.6 to 15.0.8 (with Contacts from 2.1.8 to 3.1.1 and Calendar from 1.6.4 to 1.6.5).

#No TLS (SSL) certificate is installed for this domain. Visitors to a website on this domain will get a security warning. If you are not serving a website on this domain, you do not need to take any action. Use the TLS Certificates page in the control panel to install a TLS certificate.

#FIX
~/mailinabox/management/ssl_certificates.py

#v0.43 - OK
cd #
~/mailinabox/management/backup.py
mv ./mailinabox ./mailinabox.v42b
sudo git clone -b v0.43 GitHub - mail-in-a-box/mailinabox: Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
cd mailinabox
sudo git checkout
sudo setup/start.sh

  • Upgraded Roundcube to 1.3.10.

v0.44 - OK
cd #
~/mailinabox/management/backup.py
mv ./mailinabox ./mailinabox.v43
sudo git clone -b v0.44 GitHub - mail-in-a-box/mailinabox: Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
cd mailinabox
sudo git checkout
sudo setup/start.sh

  • Upgraded Nextcloud from 15.0.8 to 17.0.2 (with Contacts from 3.1.1 to 3.1.6 and Calendar from 1.6.5 to 1.7.1)

#v0.45
cd #
~/mailinabox/management/backup.py
mv ./mailinabox ./mailinabox.v44
sudo git clone -b v0.45 GitHub - mail-in-a-box/mailinabox: Mail-in-a-Box helps individuals take back control of their email by defining a one-click, easy-to-deploy SMTP+everything else server: a mail server in a box.
cd mailinabox
sudo git checkout
sudo setup/start.sh

  • Upgraded Nextcloud from 17.0.2 to 17.0.6 (with Contacts from 3.1.6 to 3.3.0 and Calendar from 1.7.1 to v2.0.3)

#v0.46

#v0.47

#v0.48 - OK
cd #
~/mailinabox/management/backup.py
mv ./mailinabox ./mailinabox.v45
curl -s https://mailinabox.email/setup.sh | sudo -E bash