Operating System - HP-UX
1834149 Members
2274 Online
110064 Solutions
New Discussion

Re: how to recover from fbackup backup?

 
SOLVED
Go to solution
Gino Castoldi_2
Honored Contributor

how to recover from fbackup backup?

Hi,

I backed-up an entire file system (/u01) using
fbackup with this syntax.

fbackup -0 -g /tmp/graph.u01 -v -f /tmp/fbackup.u01.save

/tmp/graph.u01 contains this: i /u01

What would be the syntax to restore the entire
file system (/u01) using frecover?

10 Points to any good answer.
TIA, Gino
5 REPLIES 5
Sridhar Bhaskarla
Honored Contributor
Solution

Re: how to recover from fbackup backup?

Hi Gino,

To list the contents of the tape

frecover -I /tmp/index -f /dev/rmt/0m

To recover the entire tape

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

This will completely restore the tape. So, if you have any other files backed up other than /u01, they will also be restored.

To selectively restore the files, do

frecover -x -i /u01/subdirectory -f /dev/rmt/0m

man frecover.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: how to recover from fbackup backup?

Sorry.. didn't see your backup archive. Instead of /dev/rmt/0m use '-f /tmp/backup.u01.save'.

For ex.,

frecover -r -f /tmp/backup.u01.save

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Gino Castoldi_2
Honored Contributor

Re: how to recover from fbackup backup?

Hi,

Do I need to remove all of the files in the
file system first before I restore them?

10 Points to any good answer.
TIA, Gino
Sridhar Bhaskarla
Honored Contributor

Re: how to recover from fbackup backup?

Hi Gino,

frecover does a kind of version checking. Means if the file that is there is newer than that in the backup, it will not overwrite. So, if you want an absolute recovery, either move the files under /u01 to another filesystem or remove them completely. Else use '-o' option with frecover. But I prefer emptying the destination directory so that I will be sure of recovery.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Tom Danzig
Honored Contributor

Re: how to recover from fbackup backup?

I would also start with a "clean slate" (no files in /u01). The added benefit would be a completely defragmented file system. This is only assuming every file you want is in the backup archive.