Hi everyone, recently I needed to move my Nethserver to a new instance. To make a long story short, I assigned too much space to my original installation and wanted to shrink the drive down which is not possible because of the XFS Filesystem. The only way to do this was to backup the original server and bring everything over to a new instance. Of course I experienced issues a long the way. This is why I am sharing the steps of what I did to get that done. My hope is that, if any of you are faced with issues that this small guide can help you.
- Backup your original server by doing a Configuration Backup and a Data Backup. Make sure you download your Configuration Backup. For the Data Backup, you will need a place to store it. In my case, I’m placing everything in my NAS.
- If you are running it in a hypervisor (something like proxmox), backup your Nethserver VM. Otherwise, if you are running bare metal, you could use Clonezilla to backup the disk where you installed Nethserver.
- Shutdown your Nethserver VM
- Install a fresh copy of Nethserver
- Once Nethserver is installed, you will need to define your FQDN, you can give it the same FQDN you had before, either way with the restore it will override it.
- Go to your terminal, run ‘yum update’
- If you have applications installed from other repos such as Dokuwiki and / or Zabbix, make sure you install them.
- In my case I had Dokuwiki and Zabbix installed and I needed to install the repo for Zabbix and on top of that install Dokuwiki and Zabbix as per the procedures available. Dokuwiki : https://wiki.nethserver.org/doku.php?id=module:dokuwiki, Zabbix : https://wiki.nethserver.org/doku.php?id=zabbix
- Then you can proceed to restore your saved Configuration Backup from step 1. This will temporarily disconnect you and will restore to your previously assigned IP address. It is possible you will need to clear your cookies in order to connect again (I had to).
- Restore your Data Backup.
- You are backup and running!
The only problem I’ve noticed is the following : Even if my certs were restored, I got an invalid certificate error from the browser. I had to reinstall my let’s encrypt certificates. If you are using a DNS-01 certificate renewal, here is the procedure again in case you lost it : https://wiki.nethserver.org/doku.php?id=userguide:let_s_encrypt_for_internal_servers