Operating System - HP-UX
1836461 Members
2482 Online
110101 Solutions
New Discussion

frecover for my fbacup command

 
mark yeo
Advisor

frecover for my fbacup command

hi, can i use the below frecover command to recover my fbackup which
is as below

fbackup -f /dev/rmt/mydevice -i / -e /tmp

1)To view the contents of a fbackup tape.
#frecover â f /dev/rmt/mydevice â xNv

2)To restore all files and directories from tape.
#frecover â f /dev/rmt/mydevice â rv

3)To restore selected directory (/home/user1) or file
(/home/user2/file1) from tape.
#frecover â f /dev/rmt/mydevice â i /home/user1 â xv
#frecover â f /dev/rmt/mydevice â i /home/user2/file1 -xv

am i right?

for (3), if i want to restore a list of filesystems that start with
a) /oracle/PRD/sap*
b) /oracle/PRD/origlog*
c) /oracle/PRD/mirrlog*

to overwrite the existing filesystems. Basically, i want to restore my
oracle datafiles, origlog, mirrlog and saparch. Noticed that i am on
SAP applic
3 REPLIES 3
mark yeo
Advisor

Re: frecover for my fbacup command

not sure why the strange characters appear.. anyway, this is the correct format. cheers

hi, can i use the below frecover command to recover my fbackup which
is as below

fbackup -f /dev/rmt/mydevice -i / -e /tmp

1)To view the contents of a fbackup tape.
#frecover -f /dev/rmt/mydevice -xNv

2)To restore all files and directories from tape.
#frecover -f /dev/rmt/mydevice -rv

3)To restore selected directory (/home/user1) or file
(/home/user2/file1) from tape.
#frecover -f /dev/rmt/mydevice -i /home/user1 -xv
#frecover -f /dev/rmt/mydevice -i /home/user2/file1 -xv

am i right?

for (3), if i want to restore a list of filesystems that start with
a) /oracle/PRD/sap*
b) /oracle/PRD/origlog*
c) /oracle/PRD/mirrlog*

to overwrite the existing filesystems. Basically, i want to restore my
oracle datafiles, origlog, mirrlog and saparch. Noticed that i am on
SAP application.

how can i do that?
Steve Steel
Honored Contributor

Re: frecover for my fbacup command

Hi



Basically

To read your tape you must always use the `frecover' command.

/etc/frecover -I - (break or control-c will pause the list)

This command will display the contents to the standard output.
If the list is long, it may be better to save the index in a file.

/etc/frecover -I /tmp/index

Restore a complete directory

/etc/frecover -xi/directory
/etc/frecover -x -i/directory1 -i/directory2



When restoring `frecover' will not overwrite an existing
file, unless the -o option is used.

Thus

To backup use: /usr/sbin/fbackup -0v -f /dev/rmt/0m -i /

Recover command (absolute): /usr/sbin/frecover -xv -f /dev/rmt/0m -i /path[/file]
To do a relative restore using frecover you need BOTH -x and -X, ie -xvX


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Petr Simik_1
Valued Contributor

Re: frecover for my fbacup command

a)frecover -I /tmp/INDEX -f /dev/rmt/0m

- option -I index file all filenames included on fbackup (index file)



b) frecover -V /tmp/HEADER -f /dev/rmt/0m
option -V (Volume header information)



c) frecover -x -i /home
- full directory /home recovery
- if filename exists that is not overwriten (overwriting can be managed by including -o)

d) cd /tmp
frecover -x -oF -i /home/novak
Full directory /home/novak recovery to /tmp
- option -F excluding files after . (/home/novak/.profile => .profile)
- option -o overwriting of existing file

e) cd /tmp
frecover -x -oX -i /home/novak

- full dir /home/novak recovery to to actual dir (/tmp) - icluding directory structure
- option -X exclude / in begin of dir (/home/novak/.profile => home/novak/.profile)
- option -o overwrite file if exists
- implicit drive DDS


e) frecover -r
- full recovery off all files from tape
- filesystem must be empty


f) frecover -x -g graph_file
- graph file is used same way as with fbackup



g) frecover -N -i /home
- perform verify of data only - verify (N = no recovery)