How to Migrate LOG from CentOS6 to 7

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

How to Migrate LOG from CentOS6 to 7

Post by dlukinski »

Hello LOG support

How to migrate Nagios LOG from CentOS6.9 (Nagios template VM, extended disk)
to the new CentOS 7 VM?

- we have a lot of indexes to move over, many hundreds of GBs

Thank you
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: How to Migrate LOG from CentOS6 to 7

Post by jbrunkow »

I believe you could do a backup and restore to move your data to the newer OS.

Run this command to see if which backups are currently on the server.

Code: Select all

ls /store/backups/nagioslogserver
If there is not a backup, or you would like to make a more current one, you can run the following script to create one.

Code: Select all

/usr/local/nagioslogserver/scripts/create_backup.sh
Once it has been created, you could copy it directly from one server to the other with scp.

Code: Select all

cd /store/backups/nagioslogserver/
scp <backup name> <username>@<new server IP>:/store/backups/nagioslogserver/.
Then run the restore backup script on the new server.

Code: Select all

/usr/local/nagioslogserver/scripts/restore_backup.sh <backup name>
See the documentation linked below for more detailed instructions on performing backup and restore on Nagios Log Server.
BACKUP AND RESTORE ON NAGIOS LOG SERVER
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked