1753797 Members
7605 Online
108805 Solutions
New Discussion юеВ

Re: frecover

 
SOLVED
Go to solution
Fred Martin_1
Valued Contributor

frecover

I have an fbackup tape, created with this graph:

i /rd
i /db
i /test

I'm moving some disks/volumes around, during which /test is going to be deleted from its volume group vg01, then created again (empty) in another volume group vg04.

Before:
/dev/vg01/test ... /test
After:
/dev/vg04/test ... /test

Can someone let me know how to frecover just /test? Since the new fs will have the same name, I don't need to redirect the output of the restore, right?

From what I see in the frecover man page, I guess I'd use this:

frecover -x -i /test -c -f $TAPE

Does that look right? "configfile" is the config file that was used for the fbackup. "$TAPE" is my tape device.

Will all permissions be restored by default?

Thanks,
Fred
fmartin@applicatorssales.com
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: frecover

Hi Fred:

Yes,ownership, permissions and timestamps will be preserved.

You don't need to specify the unless you want to alter the error handling, volume change handling or synchronization. The values used during the 'fbackup' that created the tape are otherwise used.

If you want to recover your files to a current working directory, use the '-X' (uppercase "X") option. If you want to recover files without leading directories, use the '-F' option.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: frecover

Shalom Fred,

it does look right to me.

frecover will restore a single file to its original location, unless you use additional parameters directing it to a different location.

SEP
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
Fred Martin_1
Valued Contributor

Re: frecover

To be clear, I will need to restore the whole /test file system, will it be put in as:

-i /test/*

?
Fred
fmartin@applicatorssales.com
James R. Ferguson
Acclaimed Contributor

Re: frecover

Hi (again) Fred:

> To be clear, I will need to restore the whole /test file system, will it be put in as:

-i /test/*

No, simply:

-i /test

If you want to exclude anything subordinate you would do

-i /test -e /test/veryoldstuff

The graph options do not use shell wildcards. The order of 'i' and 'e' is immaterial since the first thing that 'fbackup' or 'frecover' does is to sort these. If you use these in a graph file (with the '-g' option) drop the hyphen and list them on individual lines.

If you want assurance that your recovery will do only what you expect, simply run it adding the '-v' and '-N' flags to toggle verbose messages and NOT recover.

Regards!

...JRF...
Ganesan R
Honored Contributor

Re: frecover

Hi Fred,


If you want to restore /test alone use this command.

#frecover -x -g /tmp/graph.txt -f /dev/rmt/0m

Your graph.txt should contain this..

#more /tmp/graph.txt
i /test
Best wishes,

Ganesh.
Fred Martin_1
Valued Contributor

Re: frecover

Thanks folks. It's off to work I go :)
fmartin@applicatorssales.com