System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Restoring data between two hp-ux systems

SCHK
Frequent Advisor

Restoring data between two hp-ux systems

Hi, I need to restore userdata from an older HP9000 server running hp-ux B.11.11 to a new Integrity rx2660 with hp-ux B.11.31. The tape was generated with the backup-module in SAM (fbackup) and while the data resided in /usr/u01 I need them now in /u01/xxxx/u01 (the last 'u01' in both paths being the same).
I have some trouble figuring out how to specify the frestore command correctly.
Thanks in advance.
5 REPLIES
Johnson Punniyalingam
Honored Contributor

Re: Restoring data between two hp-ux systems

Please Check if the below example, Usefull for for your requirement.

# cd /var/opt/omni; fbackup -f - -i . | (cd /var/opt/omni2; frecover -f - -r)
fbackup(1004): session begins on Thu Jan 5 13:05:09 2006
fbackup(3024): writing volume 1 to the output file -
fbackup(3055): total file blocks read for backup: 89247776
fbackup(3056): total blocks written to output file -: 89306792
[1] + Done cd /var/opt/omni; fbackup -f - -i . | (cd /var/opt/omni2; frecover -f - -r)

HTH,
Problems are common to all, but attitude makes the difference
James R. Ferguson
Acclaimed Contributor

Re: Restoring data between two hp-ux systems

Hi:

Use the '-X' [uppercase] option of 'frecover' to recover files to a relative directory. You can then 'mv' subdirectories upward in the tree to eliminate intermediate directories.

Regards!

...JRF...
SCHK
Frequent Advisor

Re: Restoring data between two hp-ux systems

Johnson, thank you for your answer but I can't quite see from the example, what you're trying to do... Could you explain briefly?
It is my intention to store the data on the old server to tape - move the tape to the new server and then do the restore.

James, thanks, I'm aware of the -X option, but I need to specify more options (got an error, and none of the choices seemed quite appropiate...)

Perhaps tar is a more relevant choice for this kind of operation?
Dennis Handly
Acclaimed Contributor

Re: Restoring data between two hp-ux systems

>Perhaps tar is a more relevant choice for this kind of operation?

Not if you want any kind of speed. And you have already done the fbackup.

>got an error, and none of the choices seemed quite appropriate.

It would be helpful if you provided your command line and the error. (Perhaps that will jog JRF's memory. :-)
SCHK
Frequent Advisor

Re: Restoring data between two hp-ux systems

I got frecover to work as anticipated, using frecover -r -v -X. Was a little reluctant using -r, since I didn't want the files to go to the old place, but it worked excellently with -X.
Thanks for the hints and help!