Operating System - HP-UX
1833187 Members
3080 Online
110051 Solutions
New Discussion

Re: Using frecover with a config file - easy question

 
SOLVED
Go to solution
Mark Perry_1
Occasional Contributor

Using frecover with a config file - easy question

Hi all,

I am using the following command to run some backups:

fbackup -f /dev/rmt/1mb -c fbackup.config -v -g fbackup.graph

The question is, do I need to specify the same graph file when I run frecover?

Thanks in advance

MP
4 REPLIES 4
Mark Perry_1
Occasional Contributor

Re: Using frecover with a config file - easy question

Sorry!!!!

I meant to say:

do I need to specify the same CONFIG file when running frecover?

doh!
harry d brown jr
Honored Contributor
Solution

Re: Using frecover with a config file - easy question

No

live free or die
harry
Live Free or Die
Steve Steel
Honored Contributor

Re: Using frecover with a config file - easy question

Hi

Yes to get everything.

graph file is used to define what you want to recover.

Same graph file will pull the whole tape.



4.1 What is written on my `fbackup' tape?

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

The advantage of `fbackup' is that the index is written in the
beginning of the tape. `frecover' does not scan the whole tape.

4.2 Restore a complete directory

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

When restoring a directory, `frecover' will not overwrite an existing
file, except if the -o option is used.

It may be nice to recover relative somewhere in a directory like /tmp/local.
To restore relative, you must go first to the directory with cd, and then
use the X or F option.

cd /tmp/local; /etc/frecover -xvXi /directory
(with directory tree path )
cd /tmp/local; /etc/frecover -xvFi /directory
(without path, only files names)

4.3 Restore of a few files from archive.

cd /tmp/local;/etc/frecover -xvF -i/path1/filename1 -i/path2/filename2
The files will be restored under the local directory.

4.4 Restore of backup over network.

Restore from a remote DAT/DDS drive

/etc/frecover -xi/directory -f remote_name:/dev/rmt/0m

Remote restore with local DAT/DDS drive

remsh remote_name " /etc/frecover -xi/directory -f local_name:/dev/rmt/0m"

4.5 Fbackup/frecover with software compression.

It may be helpful to compress your data.

To tape:
fbackup -0 -i/dir -f - | compress | dd of=/dev/rmt/0m obs=10k

Read index from tape:
dd if=/dev/rmt/0m ibs=10k | uncompress | frecover -I - -f -

Recover from tape:
dd if=/dev/rmt/0m ibs=10k | uncompress | frecover -x -i/dir


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
PIYUSH D. PATEL
Honored Contributor

Re: Using frecover with a config file - easy question

Hi,

You can always modify the graph file and then use it to restore the data you want. Or else you can use anotehr graph file also and retrive the data.

Piyush