Storage Boards Cleanup
To make it easier to find information about HPE Storage products and solutions, we are doing spring cleaning. This includes consolidation of some older boards, and a simpler structure that more accurately reflects how people use HPE Storage.
Disk Arrays
cancel
Showing results for 
Search instead for 
Did you mean: 

restoring files in different directory structure

SOLVED
Go to solution
mehul_3
Regular Advisor

restoring files in different directory structure

Hi,
As a part of weekly backup, I have been using fbackup to take database offline backup on DAT using the following:
fbackup -v -f /dev/rmt/0m -i /u01/gdbs -i /u02/gdbs -i /u03/gdbs

I have successfully restore it by using frecover command on another hp-ux11i box but it restore of what we had backed up files under the same directory structure.
Now I want to restore/copy this backup under /u01/backup directory.


Regards
Mehul
3 REPLIES
Naveej.K.A
Honored Contributor
Solution

Re: restoring files in different directory structure

Hi Mehul,

specify the '-X' option to recover to your current directory i.e. after cd ing to /u01/backups You also have to apply the '-F' option to truncate leading directories.



If you are using SAM, you can specify in the restore option (after choosing the files) to backup to a non-root directory. It will prompt you for the directory.

Regards,
Naveej
practice makes a man perfect!!!
mehul_3
Regular Advisor

Re: restoring files in different directory structure

Could you please send a exact command? I used the following command to restore whole data
frecover -f /dev/rmt/0m â
Naveej.K.A
Honored Contributor

Re: restoring files in different directory structure

Hi,

#cd /u01/backup
#frecover -x -oX -i /u01/gdbs /u02/gdbs /u03/gdbs

will get restored as /u01/backup/u01/gdbs/your_files

if you want to restore as /u01/backup/all_files_in_u0*

#cd /u01/backup
#frecover -x -oF -i /u01/gdbs /u02/gdbs /u03/gdbs


Regards,
naveej
practice makes a man perfect!!!