Networker

Re: [Networker] How to collect info of index full backup

2005-04-20 03:55:31
Subject: Re: [Networker] How to collect info of index full backup
From: Jason Koelker <jkoelker AT RACKSPACE DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Wed, 20 Apr 2005 02:50:52 -0500
You can use mminfo to pull out the savetime and then use nsrinfo to get
the paths out of the indexes.  This is the script I use to do this:

E_BADARGS=65
if [ ! -n "$1" -o ! -n "$2" -o ! -n "$3" -o ! -n "$4" ]
then
        echo "Usage: `basename $0` client server saveset level"
        exit $E_BADARGS
fi

for i in $(mminfo -s $2 -r nsavetime -q level=$4 -N $3 -v -c $1 -ot | tr
"\n" " ");
do
        nsrinfo -s $2 -V -t $i $1 > $1-$3-level_$4-$(perl -le "print
scalar localtime $i" | tr -t ' ' '.'|sed -e 's/:/-/g').txt
done

It creates a file for each save set of a given level for the client on
the server.  if this is too much you can just:

$ mminfo -s [server] -r nsavetime -q level=full -N [volume] -v -c
[client name] -ot

then take the last nuber it outputs and feed it into nsrinfo:

$ nsrinfo -s [server] -V -t [savetime from mminfo] [client name]

Have fun!

Jason

On Wed, 2005-04-20 at 09:33 +0200, jm.vanmillon AT CRELAN DOT BE wrote:
> Question of how to :
> 
> I would like to create a file with the information of index of a specific
> full backup.
> I need to make a comparison between what exist in the file system and what
> is in the in the index of the backup of this filesystem.
> maybe use of mminfo can help ??
> 
> 
> 
> 
> 
> 
> 
> Van Millon Jean-marc
> Crédit Agricole
> Bvd Sylvain Dupuis, 251
> 1070 Bruxelles/Belgium
> Dpt: ICTS/Production/Osa
> Tel:02/558.73.63
> Fax:02/558.76.32
> Email: jm.vanmillon AT crelan DOT be
> 
> 
> 
> 
> 
> This email and any attached files are confidential and may be legally 
> privileged.If you are not the intended recipient, any disclosure, 
> reproduction, copying, distribution, or other dissemination or use of this 
> communication is strictly prohibited.  If you have received this transmission 
> in error please notify the sender immediately and then delete this 
> email.Email transmission cannot be guaranteed to be secure or error free as 
> information could be intercepted, corrupted, lost, destroyed, arrive late or 
> incomplete, or contain viruses.  The sender therefore is in no way liable for 
> any errors or omissions in the content of this message, which may arise as a 
> result of email transmission. If verification is required, please request a 
> hard copy.
> Please bear in mind that the content of any email leaving and entering the 
> recipient network 
> will be verified against viruses, spam and unsuitable content in accordance 
> with the recipient 
> policies and regulations.  Halted messages will therefore be destroyed 
> without any further 
> notice.
> 
> --
> Note: To sign off this list, send a "signoff networker" command via email
> to listserv AT listserv.temple DOT edu or visit the list's Web site at
> http://listserv.temple.edu/archives/networker.html where you can
> also view and post messages to the list. Questions regarding this list
> should be sent to stan AT temple DOT edu
> =*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

--
Note: To sign off this list, send a "signoff networker" command via email
to listserv AT listserv.temple DOT edu or visit the list's Web site at
http://listserv.temple.edu/archives/networker.html where you can
also view and post messages to the list. Questions regarding this list
should be sent to stan AT temple DOT edu
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

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