1836995 Members
2349 Online
110111 Solutions
New Discussion

frecover

 
Nitin Nigam
Occasional Advisor

frecover

Hi

Using frecover utility if I want to restore all the files starting with Jan...
Can I use Jan*
ex.:frecover -xv -X -i /u01/Jan* -f /dev/rmt/0m

Will this frecover command restore all the files starting with Jan....

Thanks
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: frecover

I generally do single or selective file recovery with sam

sam
backup and recovery

recover files interatively.

I know Bill Hassell does everything on the command line, but for selective recoveries, I'm more comfortable with that. Just a suggestion.

P
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Michael Tully
Honored Contributor

Re: frecover

As far as I'm aware frecover does not support the use of wildcards. You will need to either recover entire directories or establish a graph file in which the frecover command will have to make reference to. All that 'sam' will do in selecting files is just creating it's own graph file. Have a look at this posting.


http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xdc224b3ef09fd611abdb0090277a778c,00.html
Anyone for a Mutiny ?
Stanimir
Trusted Contributor

Re: frecover

Hi!
I suppose the regular expressions are not working so correctly with frecover.
So you can try to create graph file
with Jan*-file and use it:

1. Create graphfile:
#ll -a | grep Jan |
awk -v var=/u01/ '{print "i",var$9}' > ./graphfile

2.Use it:
#frecover -xX -g ./graphfile -f /dev/rmt/0m

Regards,Stan




Thierry Poels_1
Honored Contributor

Re: frecover

Hi,

frecover does not accept wildcards for the include list.

So either restore the complete directory, if feasible.

Or extract the index to a file, grep the required files, and use the result as a graph file :
frecover -I /tmp/index -f /dev/yourdev
grep "/u01/Jan" /tmp/index > /tmp/graph
frecover -xXv -g /tmp/graph -f /dev/yourdev

good luck,
Thierry.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.