Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

frecover...

Status
Not open for further replies.

ratbs75

IS-IT--Management
Mar 8, 2001
147
BE
Hi (I'm a 'newbie' into hp-ux)

Hi, I have to restore from a tape some files, I know +/- how it works but the question is following:

lets say i've backed up 4 following files:
/data/file1
/data/file2
/data/subdir/file1
/data/subdir/file2

If I want to restore 'file1' from '/data/subdir/' into '/home/user', I typ following:
# frecover -f /dev/rmt/1m -i /data/subdir/file1 -xvF

now my question is this:
I want restore from '/data/subdir/' file1 & file2 into /home/user, BUT keeping alive the dir structure, as final I want: /home/user/data/subdir/*

What are the frestore options I have to use from '/home/user/' without creating myself with mkdir the ./data/subdir directory???

Thank you in advance, I know it must be easy, but I didn't found how it works... I tried the -X option, but i got an error message saying that he can't recover those files...

bye
Black Scorpion
 
Hi

The frecover command with the X switch should use from the /home/user directory and give you what you want.

Did you try to use a wildcard? - that would probably have caused an error.
You want to do the following

cd /home/user
frecover -v -f /dev/rmt/1m -i /data/subdir/file1
-i /data/subdir/file2

If this doesn't work, post the error message.

Queenie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top