Operating System - HP-UX
1753455 Members
6396 Online
108794 Solutions
New Discussion юеВ

Re: Regarding the frecover command

 
Viswanadhan
Regular Advisor

Regarding the frecover command

Hi Admin,

How to recover a filesystem to a different filesystem.
For example Im able to restore a filesystem as follows without problem.

# frecover -xovf /dev/rmt/0m -i /oracle

Similarly I want restore this /oracle filesystem to different filesystem with frecover command. Is it possible ?

Regards,
Viswanadhan.
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: Regarding the frecover command

Hi:

Yes, 'frecover' supports recovery to the current working directory using the '-X' [that's an uppercase "X"]. See the 'frecover' manpages.

Regards!

...JRF...
Viswanadhan
Regular Advisor

Re: Regarding the frecover command

Hi James,

Thanks It's working. For example as below.

# cd /sybase
# frecover -Xxvof /dev/rmt/0m -i /dba

Any suggestions ?
James R. Ferguson
Acclaimed Contributor

Re: Regarding the frecover command

Hi (again):

Did you mean working or not working?

> # cd /sybase
> # frecover -Xxvof /dev/rmt/0m -i /dba

...given that this is what you did, you will have recovered to:

/sybase/dba

Regards!

...JRF...
Viswanadhan
Regular Advisor

Re: Regarding the frecover command

Hi James,

It's recoverd as /sybase/dba

Is it possible as /sybase ? Then can you tell me the command syntax.
James R. Ferguson
Acclaimed Contributor

Re: Regarding the frecover command

Hi (again):

> It's recoverd as /sybase/dba

Yes, that's what I indicated would be the result from your command.

> Is it possible as /sybase ? Then can you tell me the command syntax.

Not to my knowledge. The archived absolute path is appended to the working directory path. There is no way that I know to trim part of the path name as you recover in this case. Having recovered to a current working directory, however, gives you the ability to rename and/or move the files higher in the directory tree.

The 'fbackup' and 'frecover' utiliites are deprecated beginning with 11.31 and will cease to be supported in future releases.

The replacement path is to use 'pax' which has seen considerable enhancements in 11.31 and via an add-on in 11.23. What's germane here is that 'pax' _supports_ recovery of files with absolute paths to a current working directory while allowing _substitutions_ to the paths, including snipping off paths you don't want. Have a look at the 'pax' manpages.

Regards!

...JRF...
Viswanadhan
Regular Advisor

Re: Regarding the frecover command

Hi James.

Thanks for your information.