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!

uasm and grep to search for a text in backup data

Status
Not open for further replies.

hogmaster01

Technical User
Feb 21, 2006
30
SE
Hi all!
I need to search for a specific sting in a large amount of files on tape. What is the most efficient way to do this?
I do belive it should be possible to use
uasm -S ssid | grep mystring

Has anyone done something similar and can point me in the right direction?

/Regards Daniel
 
This will not work as you can not use a SSID along with uasm.

In addition you want to look for a string inside a file but you really want to see the filename. This is impossible to my knowledge.


I recommend to recover (part of) the save set to another directory and to recursively search for the string:

recover -d /destination -S ssid [-a /directory]

find /directory -type f -exec grep -l "string" {} \;

Good luck.
 
Thank you I guess i was stuck in a rut :)

scanner -c hogden d:\test\ -x uasm -rv -i N
will restore my files and with the m option I can
redirect the files.
Is ther a way to intercept the data and actuallt not create a file at all. Just to grep for a invoce number in
the data stream? And log the output so I know what files
we need to restore?

Thanks for the quick response
/daniel
 
Sure - you can send the scanning save stream and pipe it through uasm.

However, there is no way to check the contents of a save stream in any NetWorker command. This would be a nice feature!
 
I sure would. Actually I am looking at rfc 1014 to
see if I can get at the data that way :)
Can you tell me if this is the right rfc? If so we might have this tool in a couple of days (weeks...)

/regards Daniel
 
No problem, my mistake.

Actually RFC 1832 describes the format used on tape by Legato Networker among others. So with this as a base I
can write a XDR decoder. I have already made some progress and I can extract som text strings from a tape.
I will post later wether I can read a complete file.
Thx for your help.
/regards Daniel

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top