[hobbit] More Newbie questions.. sorry in advance..
Callahan, Tom
CallahanT at tessco.com
Fri Mar 21 16:49:31 CET 2008
I use these lines:
EXCLUDE_NFS=`mount | grep nfs | awk '{print $3}'`
EXCLUDE_LIST="$EXCLUDE_NFS proc kcore core sys dev srv mount media"
for i in $EXCLUDE_LIST
do
echo $i >> $EXCLUDE_FILE
done
To generate any NFS mounted partitions and others I want to exclude, to add
as a variable to exclude from backups as well, then my backup cmd is:
/bin/tar zcpf $BACKUP_LOC/"$HOSTNAME"_backup.`date +%F`.tgz
--ignore-failed-read --exclude-from $EXCLUDE_FILE /
On 3/21/08 11:33 AM, "Rafal Roginela" <Rafal.Roginela at AmeriCashLoans.net>
wrote:
> Hi All,
>
> Did some of the research on this already and have some ideas but I would like
> a more concise list of directories to backup when I backup my CentOs 5 box
> running the Hobbit Moinitor. I do have a ³full backup² that I actually made a
> script for that connects me to a windows box that is being backed up to tape
> and dumps a nice bz2 file there. What I¹m looking for is the incremental or
> data directories that I should be backing up daily (I figured /etc) but want
> to know of any other places that I should be backing up my server on a daily
> basis. Here is the tar command that I run for a full backup once a week:
>
> ³tar cvpjf "$backup_location/$backup_name" --exclude=/proc
> --exclude=/lost+found --exclude=/mnt --exclude=/sys /²
>
> And if someone knows of anything more I should be adding to the excludes that
> would also help.
>
> The server is pretty much a monitoring box running Hobbit monitoring my sites
> and servers and OpenNMS to monitor my switches and firewalls. I¹m doing
> research now on cron to get these to fire off by themselves not me manually
> running the scripts
>
> Thank you Henrik and contributors for the great software! And thank you all
> for the great responsiveness and great advice!!
>
> Thank you,
> Rafal Roginela
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080321/567d58b6/attachment.html>
More information about the Xymon
mailing list