Operating System - HP-UX
1826725 Members
2645 Online
109702 Solutions
New Discussion

frecover in a different location

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

frecover in a different location

Hi,

I have taken backup with the following command:

# fbackup -f /dev/rmt/0m -i /LinkX/link_tha/Done_ink -i /LinkX/hob/Done

There were many files inside /LinkX/link_tha/Done_ink and /LinkX/hob/Done

Now I want to restore the contents in a different location in the same m/cs. Also I don't want to overwrite the previous data.

The new location is : /LinkX/tmp.23102002/
Here the data restored can be in the same or different folder.

What should be the command?

Regards,
Raje.
Everything is possible
6 REPLIES 6
Paula J Frazer-Campbell
Honored Contributor
Solution

Re: frecover in a different location

Hi

The easy way is:-

SAM
SAM Backup and Recovery ->
SAM Interactive Backup and Recovery

Select device.

Actions
Recover Files or Directories

and on the:-

Set Additional Parameters...

select your tgt dir.

HTH

Paula

If you can spell SysAdmin then you is one - anon
melvyn burnard
Honored Contributor

Re: frecover in a different location

well if you look at the man pages for frecover, you will see there are a couple of options for you.
You could cd to the new directory (empty) and then frecover using the option:
-F Recover files without recovering leading directories

Or you could use:
-X Recover files relative to the current working directory.

To test that it is doing what you want, include the -N option the first time, so it does not actually write to the disc.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
T G Manikandan
Honored Contributor

Re: frecover in a different location

check the man pages for the -F and -X options of
frecover
T G Manikandan
Honored Contributor

Re: frecover in a different location

T G Manikandan
Honored Contributor

Re: frecover in a different location

Aranzazu
Frequent Advisor

Re: frecover in a different location

Put in the directory you want to recover your files (LinkX/tmp.23102002) and write:

frecover -x -X -v -i directoty_included -e directoty_excluded

-i: directory to be included to extract
-e:directory to be excluded
-v :vervose
-x : needed by -i and -e options
-X: Recover files relative to the current directory.

Aranza3