Diferencia entre revisiones de «Red/VPS/Migración Mailinabox»

De Portfolio Academico
< Red‎ | VPS
Línea 31: Línea 31:


Using any SFTP program like FileZilla 4 (or scp if you know how) copy your backups from /home/user-data/backup/encrypted and the encryption key at /home/user-data/backup/secret_key.txt on your box to somewhere safe.
Using any SFTP program like FileZilla 4 (or scp if you know how) copy your backups from /home/user-data/backup/encrypted and the encryption key at /home/user-data/backup/secret_key.txt on your box to somewhere safe.
== Create a new Ubuntu 18.04 machine for your new Mail-in-a-Box==

Revisión del 10:26 18 ene 2019

This is a simplified made exclusively for my case. PLEASE DO NOT ATTEMPT TO APPLY IT AS-IS. CHECK OFFICIAL MANUAL IN THIS LINK.

Let your users know what’s happening

Your box is likely to be off-line for some time during the upgrade process. If you change IP addresses, DNS may take a few days to update. Let your users know ahead of time what your plan is.

Update your existing box to the latest version of Mail-in-a-Box for Ubuntu 14.04

My box is already up-to-date.

Perform a final backup

Stop mail services

You will be performing a backup + restore to move your data to the new box. To ensure you have a final backup, first block access to your box to all services besides SSH so that no new emails are sent or received, no calendar or contacts data is changed, and so on, after the backup completes — you don’t want to have any data on the box that isn’t backed up.

Log into your box using SSH and run the following commands to change the software firewall rules to block everything except SSH:

ufw reset
ufw allow 22
ufw enable

Make a backup

Then perform a backup to ensure you have everything backed up since the last nightly backup run. Run:

cd mailinabox
management/backup.py

Copy the backups and the encryption key used to encrypt the backups off of your box and onto your desktop or somewhere else.

Using any SFTP program like FileZilla 4 (or scp if you know how) copy your backups from /home/user-data/backup/encrypted and the encryption key at /home/user-data/backup/secret_key.txt on your box to somewhere safe.

Create a new Ubuntu 18.04 machine for your new Mail-in-a-Box