Page 1 of 1
script for sync main with backup server
Posted: Sun Feb 14, 2021 11:00 am
by fsodah
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
Posted: Mon Feb 15, 2021 2:38 pm
by vtrac
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:
Code: Select all
/usr/local/nagiosxi/scripts/restore_xi.sh `find /store/backups/nagiosxi/ -name "*.tar.gz" -type f | xargs ls -tr | tail -1`
Regards,
Vinh
Re: script for sync main with backup server
Posted: Mon Feb 15, 2021 4:15 pm
by fsodah
Done ... please close the above ticket
Re: script for sync main with backup server
Posted: Mon Feb 15, 2021 4:19 pm
by scottwilkerson
fsodah wrote:Done ... please close the above ticket
Locking thread