script for sync main with backup server
script for sync main with backup server
Do you have a script to update the backup server every week with main... taking the backup and stop Nagios on the backup server and restore the latest image of the config ... since am doing it now manually.
Re: script for sync main with backup server
Hi fsodah,
I'm sorry we do not have the script to update the backup server every week with main.
However, you can setup the weekly SSH backup and store the backup "*.tar.gz" file onto your replica server.
You can also use "rsync" to do that if you like.
Once the ".tar.gz" file is on the replica server, you can setup a cron job that will calls the below command:
Regards,
Vinh
I'm sorry we do not have the script to update the backup server every week with main.
However, you can setup the weekly SSH backup and store the backup "*.tar.gz" file onto your replica server.
You can also use "rsync" to do that if you like.
Once the ".tar.gz" file is on the replica server, you can setup a cron job that will calls the below command:
Code: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh `find /store/backups/nagiosxi/ -name "*.tar.gz" -type f | xargs ls -tr | tail -1`
Vinh
Re: script for sync main with backup server
Done ... please close the above ticket
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: script for sync main with backup server
Locking threadfsodah wrote:Done ... please close the above ticket