Networker

Re: [Networker] How do I verify files where backed up?

2010-02-04 16:52:40
Subject: Re: [Networker] How do I verify files where backed up?
From: Tim Mooney <Tim.Mooney AT NDSU DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Thu, 4 Feb 2010 15:49:08 -0600
In regard to: [Networker] How do I verify files where backed up?, Tom...:

How do I go about verifying that my files were backed up?

If you have the space and the time, doing a full recovery and then
comparing the contents of the source hierarchy to your recovered hierarchy
would be the most thorough way to do it.  It's pretty "brute force", but
might be a good exercise for other reasons (confidence in your backups,
example of how long it takes to recover a volume, etc.).

Otherwise, you will likely need to become familiar with the 'mminfo'
command to generate a report of what savesets were done for the system
and volume in question, and then the nsrinfo command to see what files
are contained in each of those savesets.

Note that you can get the ssid for each saveset done for a particular
(client, volume) just using the GUI.  However, for reasons known only to
the original "nsrinfo" developers, nsrinfo is an oddball: it uses the
savetime (nsavetime) to choose savesets to display information about,
rather than the much more obvious ssid.

Even after a few days worth of backups, there are still some of the files
that never get backed up, yet NetWorker tells me "Success!" for the backup.
I'm not sure how to troubleshoot this.  Essentially, what I'm thinking is to
come up with a list of files I have on the client system, perform a backup,
and then compare those lists.

Well, you'll want to perform a *full* backup before comparing of course.

Something like the following script will generate much of what you need
for a report:

#! /bin/sh

client='your_client_name_here'
volume='the_volume_name_here'

#
# output all of our files into a directory named for the client.
#
test -d $client || mkdir $client

for line in `mminfo -xc@ -ot -q "client=$client,name=$volume" \
                -r 'ssid,nsavetime' | tail -n +2`
do
        ssid=`echo "$line" | cut -d @ -f 1`
        nsavetime=`echo "$line" | cut -d @ -f 2`
        nsrinfo -t $nsavetime $client > $client/nsrinfo.$nsavetime.ssid$ssid
done


Tim
--
Tim Mooney                                             Tim.Mooney AT ndsu DOT 
edu
Enterprise Computing & Infrastructure                  701-231-1076 (Voice)
Room 242-J6, IACC Building                             701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

To sign off this list, send email to listserv AT listserv.temple DOT edu and type 
"signoff networker" in the body of the email. Please write to networker-request 
AT listserv.temple DOT edu if you have any problems with this list. You can access the 
archives at http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

<Prev in Thread] Current Thread [Next in Thread>