Networker

Re: [Networker] Search different versions of files for recover

2004-09-07 04:15:07
Subject: Re: [Networker] Search different versions of files for recover
From: "Krishnan, Ramamurthy" <Ramamurthy.Krishnan AT KPMG.CO DOT UK>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Tue, 7 Sep 2004 09:14:35 +0100
Hi All

The following simple script did the job for me.  Thanks for all those
who helped me.

Rgds, Ram.

****** START SCRIPT *********

#!/bin/ksh

fileToRestore=''
clientName=''
nsrServer=''

echo "What file or folder do you want to restore?"
read fileToRestore

echo "\nWhich filer do the files/folders reside in? : "
read clientName

echo "\nEnter the name of the NSR server that backs up this client : "
read nsrServer

echo "\n[ $fileToRestore ] as on the following dates are available for
restore...    "

/usr/sbin/nsrinfo -s "$nsrServer" -N "$fileToRestore" "$clientName" |
grep -i "date=" | cut -d, -f2 | awk '{print $4"-"$3"-"$6}' | more

****** END SCRIPT *********

-----Original Message-----
From: Legato NetWorker discussion [mailto:NETWORKER AT LISTMAIL.TEMPLE DOT EDU]
On Behalf Of Marcel Hirter
Sent: 07 September 2004 08:36
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: Re: [Networker] Search different versions of files for recover

Hi ,
try this command:

C:\>nsrinfo -s vdn-nsr1 -Vv -N C:\system\backup.txt vdn-nsr1 scanning
client `vdn-nsr1' for all savetimes from the backup namespace on server
vdn-nsr1 WIN ASDF v2 file `C:\system\backup.txt', size=12744,
off=45286152, app=backup(1), date=1094504657 Mon Sep 06 23:
04:17 2004, file size=12353
WIN ASDF v2 file `C:\system\backup.txt', size=12744, off=44704616,
app=backup(1), date=1094418464 Sun Sep 05 23:
07:44 2004, file size=12353
WIN ASDF v2 file `C:\system\backup.txt', size=12744, off=44114796,
app=backup(1), date=1094332011 Sat Sep 04 23:
06:51 2004, file size=12353
WIN ASDF v2 file `C:\system\backup.txt', size=12744, off=43538012,
app=backup(1), date=1094247253 Fri Sep 03 23:
34:13 2004, file size=12353
WIN ASDF v2 file `C:\system\backup.txt', size=592, off=782894212,
app=backup (1), date=1094159247 Thu Sep 02 23:0
7:27 2004, file size=203
WIN ASDF v2 file `C:\system\backup.txt', size=11696, off=778277080,
app=backup(1), date=1093554257 Thu Aug 26 23
:04:17 2004, file size=11307
WIN ASDF v2 file `C:\system\backup.txt', size=11668, off=776706636,
app=backup(1), date=1092949598 Thu Aug 19 23
:06:38 2004, file size=11279
WIN ASDF v2 file `C:\system\backup.txt', size=11664, off=771504144,
app=backup(1), date=1092344629 Thu Aug 12 23
:03:49 2004, file size=11275
WIN ASDF v2 file `C:\system\backup.txt', size=392, off=83619388,
app=backup (1), date=1092258246 Wed Aug 11 23:04
:06 2004, file size=1
WIN ASDF v2 file `C:\system\backup.txt', size=392, off=63951732,
app=backup (1), date=1092171974 Tue Aug 10 23:06
:14 2004, file size=1
10 objects found

OR without -Vv

C:\>nsrinfo -s vdn-nsr1 -N C:\system\backup.txt vdn-nsr1 scanning client
`vdn-nsr1' for all savetimes from the backup namespace on server
vdn-nsr1 C:\system\backup.txt, date=1094504657 Mon Sep 06 23:04:17 2004
C:\system\backup.txt, date=1094418464 Sun Sep 05 23:07:44 2004
C:\system\backup.txt, date=1094332011 Sat Sep 04 23:06:51 2004
C:\system\backup.txt, date=1094247253 Fri Sep 03 23:34:13 2004
C:\system\backup.txt, date=1094159247 Thu Sep 02 23:07:27 2004
C:\system\backup.txt, date=1093554257 Thu Aug 26 23:04:17 2004
C:\system\backup.txt, date=1092949598 Thu Aug 19 23:06:38 2004
C:\system\backup.txt, date=1092344629 Thu Aug 12 23:03:49 2004
C:\system\backup.txt, date=1092258246 Wed Aug 11 23:04:06 2004
C:\system\backup.txt, date=1092171974 Tue Aug 10 23:06:14 2004 10
objects found

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




                Email Disclaimer

This email has been sent from KPMG LLP, a UK limited
liability partnership, or from one of the companies within
its control (which include KPMG Audit Plc , KPMG United
Kingdom Plc and KPMG UK Limited). The information in
this email is confidential and may be legally privileged.
It is intended solely for the addressee.  Access to this
email by anyone else is unauthorised. If you are not the
intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it,
 is prohibited and may be unlawful.  When addressed to
our clients any opinions or advice contained in this email
are subject to the terms and conditions expressed in the
governing KPMG client engagement letter.

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

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