Page 1 of 1
How to backup and restore XI to the new host
Posted: Mon Jun 08, 2020 10:13 am
by dlukinski
Hello XI support
How to backup and restore XI tot he new host (inlcuding all PHP, NRPE, BPI customizations, perf data, etc?)
- we are migrating from the old (CentOS 6) to the new OVA (CentOS 7), also migration from postgre to MySQL.
Would standard backup cover the customizations, or is there a list of directories to pickup?
- BPI / PHP/ NRPE
- custom plugins
- perf data
- else
Thank you
Re: How to backup and restore XI to the new host
Posted: Mon Jun 08, 2020 11:39 am
by jdunitz
This document might be helpful:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As long as your customizations are in the standard locations and you haven't added files outside those directories, you should be fine.
You can always verify that your customizations are being backed up by doing a backup, then unpacking it like this and looking for your items:
Code: Select all
[root@jpd-nagiosxi-one nagiosxi]# cd /store/backups/nagiosxi
[root@jpd-nagiosxi-one nagiosxi]# ls
1585772763.tar.gz 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# tar -xzf 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# ls
1585772763.tar.gz 1591034626 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# cd 1591034626
[root@jpd-nagiosxi-one 1591034626]# ls
conf.d httpd mysql nrdp.tar.gz
cron logrotate nagios.tar.gz usr-share-snmp.tar.gz
etc-snmp.tar.gz mrtg.cfg nagiosxi.tar.gz
home-nagios.tar.gz mrtg.tar.gz nagvis.tar.gz
[root@jpd-nagiosxi-one 1591034626]# for file in *gz
> do
> tar -xzf $file
> done
[root@jpd-nagiosxi-one 1591034626]# ls
conf.d home-nagios.tar.gz mysql usr
cron httpd nagios.tar.gz usr-share-snmp.tar.gz
etc logrotate nagiosxi.tar.gz var
etc-snmp.tar.gz mrtg.cfg nagvis.tar.gz
home mrtg.tar.gz nrdp.tar.gz
[root@jpd-nagiosxi-one 1591034626]#
Now your whole XI structure is unpacked inside the backup directory, and you can look for what you need. Keep in mind that this unpacks to over a gigabyte, so if you're short on space, be careful.
Hope that's helpful!
--Jeffrey
Re: How to backup and restore XI to the new host
Posted: Fri Jul 17, 2020 2:29 pm
by dlukinski
jdunitz wrote:This document might be helpful:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As long as your customizations are in the standard locations and you haven't added files outside those directories, you should be fine.
You can always verify that your customizations are being backed up by doing a backup, then unpacking it like this and looking for your items:
Code: Select all
[root@jpd-nagiosxi-one nagiosxi]# cd /store/backups/nagiosxi
[root@jpd-nagiosxi-one nagiosxi]# ls
1585772763.tar.gz 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# tar -xzf 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# ls
1585772763.tar.gz 1591034626 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# cd 1591034626
[root@jpd-nagiosxi-one 1591034626]# ls
conf.d httpd mysql nrdp.tar.gz
cron logrotate nagios.tar.gz usr-share-snmp.tar.gz
etc-snmp.tar.gz mrtg.cfg nagiosxi.tar.gz
home-nagios.tar.gz mrtg.tar.gz nagvis.tar.gz
[root@jpd-nagiosxi-one 1591034626]# for file in *gz
> do
> tar -xzf $file
> done
[root@jpd-nagiosxi-one 1591034626]# ls
conf.d home-nagios.tar.gz mysql usr
cron httpd nagios.tar.gz usr-share-snmp.tar.gz
etc logrotate nagiosxi.tar.gz var
etc-snmp.tar.gz mrtg.cfg nagvis.tar.gz
home mrtg.tar.gz nrdp.tar.gz
[root@jpd-nagiosxi-one 1591034626]#
Now your whole XI structure is unpacked inside the backup directory, and you can look for what you need. Keep in mind that this unpacks to over a gigabyte, so if you're short on space, be careful.
Hope that's helpful!
--Jeffrey
Thank you,
Please close the thread (We've migrated now)
Re: How to backup and restore XI to the new host
Posted: Mon Jul 20, 2020 7:22 am
by scottwilkerson
dlukinski wrote:jdunitz wrote:This document might be helpful:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As long as your customizations are in the standard locations and you haven't added files outside those directories, you should be fine.
You can always verify that your customizations are being backed up by doing a backup, then unpacking it like this and looking for your items:
Code: Select all
[root@jpd-nagiosxi-one nagiosxi]# cd /store/backups/nagiosxi
[root@jpd-nagiosxi-one nagiosxi]# ls
1585772763.tar.gz 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# tar -xzf 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# ls
1585772763.tar.gz 1591034626 1591034626.tar.gz
[root@jpd-nagiosxi-one nagiosxi]# cd 1591034626
[root@jpd-nagiosxi-one 1591034626]# ls
conf.d httpd mysql nrdp.tar.gz
cron logrotate nagios.tar.gz usr-share-snmp.tar.gz
etc-snmp.tar.gz mrtg.cfg nagiosxi.tar.gz
home-nagios.tar.gz mrtg.tar.gz nagvis.tar.gz
[root@jpd-nagiosxi-one 1591034626]# for file in *gz
> do
> tar -xzf $file
> done
[root@jpd-nagiosxi-one 1591034626]# ls
conf.d home-nagios.tar.gz mysql usr
cron httpd nagios.tar.gz usr-share-snmp.tar.gz
etc logrotate nagiosxi.tar.gz var
etc-snmp.tar.gz mrtg.cfg nagvis.tar.gz
home mrtg.tar.gz nrdp.tar.gz
[root@jpd-nagiosxi-one 1591034626]#
Now your whole XI structure is unpacked inside the backup directory, and you can look for what you need. Keep in mind that this unpacks to over a gigabyte, so if you're short on space, be careful.
Hope that's helpful!
--Jeffrey
Thank you,
Please close the thread (We've migrated now)
Great!
Locking thread