1834463 Members
2640 Online
110067 Solutions
New Discussion

Frecover

 
Kathleen
Regular Advisor

Frecover

I am trying to restore an entire directory.

I changed to the directory to restore to and used this format....
frecover -f /dev/rmt/0m -i ./netscape -vx

It did the recovery, but now I have /netscape/netscape with all the files listed in the second directory that the frecover created.

What did I miss to get it to restore to the current directory but not create the second netscape directory? If that makes sense at all the way I am asking! I didn't want the directory restored created again inside the directory it should have been restored to.
5 REPLIES 5
Denver Osborn
Honored Contributor

Re: Frecover

Try;

frecover -xXvf /dev/rmt/0m -i /path_to_restore

the '-X' option will recover files relative to current working dir.

James R. Ferguson
Acclaimed Contributor

Re: Frecover

Hi Kathleen:

You must have used the '-X' option of 'frecover' to restore files to the current working directory. Normally 'frecover' restores to the absolute path name. In that case, directories and subdirectories are created as you need them -- you don't need to do a 'mkdir' -- it's done intrinsically.

...JRF...
Rob Smith
Respected Contributor

Re: Frecover

Hi, if you use the -X option it will create and restore the directory under the current directory. If the -F option is specified it will extract the requested files and place them in the current directory but won't create the directory structure. You use these options along with the -x option. If you use both -X and -F together -F will override. Hope this helps.

Rob
Learn the rules so you can break them properly.
Mark Mitchell
Trusted Contributor

Re: Frecover

Here

This will restore to the current working directory
#frecover -Xv -g /restore_graph -f /dev/rmt/0m

This will restore to same original location
frecover -xv -g /restore_graph -f /dev/rmt/0m

The restore graph file will just look like this
i /netscape

its just a plain text file telling frecover what to include
Shahul
Esteemed Contributor

Re: Frecover



Hi

The mistake U have done is U used -X option with frecover. I f U use this data will get restored with full path in existing directory. U give like this

#frecover -rf /dev/rmt/0m

I hope this will solve ur problem.

shahul