Following a recent post where I tried to resize (downsize) my Nethserver disk, without success, I am not forced to create a new server and migrate my services. Fortunately for me, I do not yet have many things to migrate. Zabbix is one of those services. I have done quite a a lot of work there and would like to keep it if I can.
From a bit of research I have done, Zabbix seems to be using a database and there are files located in /etc/zabbix. While backing up a database is not the end of the world and certainly a folder is very easy, I havenāt found anything else but also not sure if that would be the best approach to backing up Zabbix.
I was wondering if any of you had to go through that task and if they would mind sharing their procedure?
Iāve read in mrmarkuz installation guide, https://wiki.nethserver.org/doku.php?id=zabbix, that a config and data backup was all we needed. Just want to confirm that is the case? Basically, not sure what is included in that backup as there isnāt much details in the backup config except the time we want to execute it and where we want to drop the backup. Maybe it takes care of dokuwiki too? Not clear.
I ran a backup and restored that in another Nethserver VM but Zabbix and Dokuwiki wasnāt part of the backup. Is there something I missed that I needed to do?
Basically I restored the configuration and then restored backups but no zabbix or dokuwiki
So it seems it doesnāt know what paths were included in the backup? Is that normal? Should I specify those? Iām guessing the restore didnāt restore Zabbix and Dokuwiki and that Iāll have to install those manually before I can do a restore.
Ahh yes the repos probably werenāt addedā¦ That is probably why the restore configuration wasnāt able to pull them inā¦ I did do a data restore after but since there configuration restore was missing the repos then I think that was the problem. Iāll let you know as soon as I have the chance to work on this.
Update : Issue fixed, I installed @mrmarkuz repository and I could install @stephdl repo. But Iām surprised it didnāt down the dependencies automatically.
I managed to get Zabbix up but Dokuwiki, for some reason doesnāt load. I noticed my active directory was recreated from my configuration restore which is as expected but the users didnāt follow. Not sure if this is why Dokuwiki is not working properly.
I think I know what went wrong. First time Iām doing a move from one server to another involving Zabbix and Dokuwiki. For those who this may help if you ever need to move to another server, for example, you realized you donāt need as much space as you originally allocated and want to shrink it down, your only option with XFS is to build a new machine. So Iāll build a guide for those who this may be usefulā¦
If you need, for what ever reason to migrate your Nethserver to another instance, here is what you need to do and what worked for me.
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.
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.
@tessierp, thank you for your resume of your ādisaster recoveryā
It is useful for other community members to find this thread.
So like to ask you if you are willing to change the subject to something which covers the final content of content of this post. (and mark your own found solution of course )
To be very honest with you, I didnāt check that as I was in a rush before a meetingā¦ But it could have been that. I had to download the acme.sh anyways that didnāt survive the backup so I would have had auto-renewal issues.