back up script question and request
Posted: Fri Oct 05, 2012 5:14 pm
Nagios has an auto back up that runs everyday, It does it without having to shutdown the services and stuff. When I look at the file that results from running:
the file it creates is xyz.tar.gz, and induces the entire nagios directory structure. But the script that does the daily/weekly/ monthly backups creates files that are broken down to nagios's separate parts.
i am confused about why the two scripts backup nagios differently, and why I can run one script with nagios running, and have to shut it down for another.
The restore process for the
Code: Select all
is so easy even I can do it.
But how do I restore files from the from the D,W,M backup?
If this next question is out of the scope of this support forum(and i think it is, but I am throwing my self on you folk's mercy), can someone help me rewrite both scrips or show me what to edit in the scripts so that they will include the folders listed below, and then push the files to a remote server? again if that is going to far i understand.
Thanks in advance.
Code: Select all
/usr/local/nagiosxi/scripts/backup_xi.shthe file it creates is xyz.tar.gz, and induces the entire nagios directory structure. But the script that does the daily/weekly/ monthly backups creates files that are broken down to nagios's separate parts.
i am confused about why the two scripts backup nagios differently, and why I can run one script with nagios running, and have to shut it down for another.
The restore process for the
Code: Select all
Code: Select all
/usr/local/nagiosxi/scripts/backup_xi.shBut how do I restore files from the from the D,W,M backup?
If this next question is out of the scope of this support forum(and i think it is, but I am throwing my self on you folk's mercy), can someone help me rewrite both scrips or show me what to edit in the scripts so that they will include the folders listed below, and then push the files to a remote server? again if that is going to far i understand.
Code: Select all
/store/backups/*
/usr/local/nagiosxi/nom/checkpoints/*
/usr/local/nagvis/*
/etc/mrtg/mrtg.cfg
/var/lib/mrtg/*