Operating System - HP-UX
1834241 Members
2631 Online
110066 Solutions
New Discussion

Re: how to restore selective and whole backup

 
SOLVED
Go to solution
mehul_3
Regular Advisor

how to restore selective and whole backup

Hi there!
I have a two basic questions
1) How to restore full backup;it's generally with frecover but I doesn't have hands-on experience to do the same.
2) How to restore selective backup file instead of full.

million thanks in advance
4 REPLIES 4
Patrick Wallek
Honored Contributor

Re: how to restore selective and whole backup

It really depends on how the backup was created.

If you backed up using fbackup, then the answer to both your questions is frecover. Just read the frecover man page for more details on how to restore selected file(s) or the entire backup.

If your backup was created with some other tool, then your restores will also be done with that tool.
Sridhar Bhaskarla
Honored Contributor
Solution

Re: how to restore selective and whole backup

Mehul,

I suggest you play with fbackup to understand it better. Create a directory structure with dummy data, back it up using 'fbackup' and recover it with 'frecover' with various scenarios. For ex., for simple full backup, you can use

fbackup -f /dev/rmt/0m -i /testdirectory

For simple full recovery,

frecover -r -f /dev/rmt/0m

This will restore entire /testdirectory. If you want to selectively restore a subdirectory under /testdirectory say /testdirectory/maindir1/subdir1, then

frecover -r -f /dev/rmt/0m -i /testdirectory/maindir1/subdir1

You can also retrieve the files that got backedup using '-I ' option of frecover. fbackup allows you to do 'incremental' backups which can be very useful. If you don't have any third party backup tools, then fbackup is the best way of backing up your HP system. Look at man pages of 'fbackup' and 'frecover' for better understanding.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
mehul_3
Regular Advisor

Re: how to restore selective and whole backup

But I want to restore only single file.
It would be better if you give someone give command with example.


Mehul
Sunil Sharma_1
Honored Contributor

Re: how to restore selective and whole backup

If you want to recover selective file the procedure depends on how did you backup them ?

Different procedure for different tools.

If you have taken backup using fbackup and you know path of file you can easily recover using frecover -i option.


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***