Operating System - HP-UX
1833798 Members
2963 Online
110063 Solutions
New Discussion

frecover command need help urgent please

 
kate32
Frequent Advisor

frecover command need help urgent please

Hi,
I have a tape fbackup done (fbackup -f /dev/rmt/0m -i / -I index.fullfbackup) and I need to restore 3 filesystems, I would like to know the correct command and options:
example:
I want to restore the filesystem /data1 under /data1
and /data2 under another filesystem /datatest

I tried this for the restore of /data1 and it works:
frecover -vxF -f /dev/rmt/0m -i /data1
=> everyhting is correctly restored on the filesystem /data1

but if I want to restore the whole filesystem /data2 on another filesystem /datatest he didn't restore the path directory etc... only directly the files.... here the command I did
< / > # cd /datatest
< /data2 > # frecover -vxF -f /dev/rmt/0m -i /data2

Could you give me the good options to do it propery Thanks in advance it is very urgent !
Cheers
Al
4 REPLIES 4
kate32
Frequent Advisor

Re: frecover command need help urgent please

another question can I restore the 3 filesystem in the same time ? I don't think I can do it but we never know just in case... Thanks in advance Kate
kate32
Frequent Advisor

Re: frecover command need help urgent please

I have found my mistakes t was the F option wrong but X !!!
frecover -vxX

but still if you can answer to the questions if we can restore several filesystems in the same time

There is a log for a frecover or fbackup?

Thanks in advance
Cheers
Kate
SANTOSH S. MHASKAR
Trusted Contributor

Re: frecover command need help urgent please

Hi,

------------------------------
but if I want to restore the whole filesystem /data2 on another filesystem /datatest he didn't restore the path directory etc... only directly the files.... here the command I did
< / > # cd /datatest
< /data2 > # frecover -vxF -f /dev/rmt/0m -i /data2
-------------------
U have to use -X option of frecover.

do like this

# cd /datatest
# frecover -xXvf /dev/rmt/0m -i /data2

This will extract contents of /data2 under
/datatest with full path hierarchy

eg.
if u have

/data2/dir1/dir2/file1

will get restored as

/datatest/data2/dir1/dir2/file1

then move all contents of /datatemp/data2 to
/data2

# mv /datatemp/data2/* /datatemp

SANTOSH S. MHASKAR
Trusted Contributor

Re: frecover command need help urgent please

Hi,

As far as fbackup is concerned it doesn't
recognise filesystem it only knows files.

If u mean /data1, /data2, /data3 etc. as filesystems mounted on /data1, /data2, /data3
then u can restore multiple filesystem provided
they should present in a single backup of fbackup.

If u mean restoreing several filesystems in the same time
as restoring in a single command then u can use

# frecover -xvf /dev/rmt/0m -i /data1 -i /data2 -i /data3 .....

OR

u can create a graph file eg. gr1 as

gr1
-------
i /data1
i /data2
i /data3
---------

and use

# frecover -xvf /dev/rmt/0m -g gr1