Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get file mod times from command line?

Status
Not open for further replies.

ekramer18

Programmer
May 25, 2007
8
US
Using a command line, is it somehow possible, given a client and an ssid or savetime, to get a listing of the files that were backed up by that save set along with the last modification times for each of those files?

Unless I'm missing something (which is entirely possible), nsrinfo appears to only give me file names and sizes...can't seem to find the last modification time. Can I use the recover command to browse?

Any help greatly appreciated. Thanks.
 
Hello,

the only way where I can see a beginning of solution is to make an 'interactive session' of recover, so you can see the changetime of a file, by issuing the ll filename command...

Hope this helps.

Denis
 
Hi Denis -

Thank you for the reply. Pardon the delay...I've been on vacation.

Any suggesstions on how exactly would one go about doing that in a batch process?

Thanks,
Eric
 
You can try this (in Perl, but very close in unix shell), but you may have to scan the results in order to purge results you don't want (networker messages) :

#!/usr/bin/perl
$DATMOD=`recover -c client_name <<fin 2>&1
cd /etc
ll hosts
quit
fin`;
print $DATMOD;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top