Operating System - HP-UX
1753785 Members
7341 Online
108799 Solutions
New Discussion юеВ

Re: using hp-ux 10.20 backup command or other

 
SOLVED
Go to solution
jerry1
Super Advisor

using hp-ux 10.20 backup command or other

I need to backup a system. Is backup command
a simple option to use. New site does not
have backup server. They will use 4mm dds2
tape drive for now. Or is there another
way to backup partitions other than vg00
which I have done make_recovery tape for that.
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor
Solution

Re: using hp-ux 10.20 backup command or other

Hi:

You have 'fbackup' and 'frecover' along with 'tar', 'cpio' and 'pax' on 10.20.

I would suggest using 'fbackup'. See the manpages for more information.

Regards!

...JRF...
jerry1
Super Advisor

Re: using hp-ux 10.20 backup command or other

Just saw that(fbackup). So if I want
to restore all or just one file. I can
do that with "frecover" ?

What about "dump" and "restore" that I
see in man pages?

Bill Hassell
Honored Contributor

Re: using hp-ux 10.20 backup command or other

fbackup is the best choice. Unlike cpio, tar, dump, etc, there is an index of all the files at the beginning of the tape and fbackup supports multiple tapes for a single backup that won't fit. fbackup is much faster than any of the classic backup tools, but be sure you use this config file for your DDS tape:

blocksperrecord 4096
records 64
checkpointfreq 4096
readerprocesses 6
maxretries 5
retrylimit 5000000
maxvoluses 200
filesperfsm 2000

Here are some example commands for fbackup/frecover:

fbackup -i / -v -c config-file -f /dev/rmt/0m

Display the tape header with dates:
frecover -V - -f /dev/rmt/0m

Display the table of contents:
frecover -I - -f /dev/rmt/0m


Bill Hassell, sysadmin
James R. Ferguson
Acclaimed Contributor

Re: using hp-ux 10.20 backup command or other

Hi (again):

> Just saw that(fbackup). So if I want
to restore all or just one file. I can
do that with "frecover" ?

Absolutely, yes. BOth 'fbackup' and 'frecover' use a "graph" file to list the (i)ncluded files and/or directories along with any (e)xcluded ones.

When recovering a file or files, you also have the option of recovering to your current working directory.

Regards!

...JRF...
jerry1
Super Advisor

Re: using hp-ux 10.20 backup command or other

I'm reading through the man pages.
How do I do an interactive selective
file restore before I blow something up?

jerry1
Super Advisor

Re: using hp-ux 10.20 backup command or other

I usedt his for backup:

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

And did Bill's commands to verify.

James R. Ferguson
Acclaimed Contributor

Re: using hp-ux 10.20 backup command or other

Hi (again):

There isn't an interactive restore per se. You can use the tools to create disk-resident archives, too. The graph file lets you selectively recover as well as backup. Consider this:

# cp /etc/hosts /tmp/hosts

# fbackup -vf /var/tmp/myarchive -i /tmp

# frecover -xvof /var/tmp/myarchive -i /tmp/hosts

...restores only the 'hosts' file

Regards!

...JRF...
Bill Hassell
Honored Contributor

Re: using hp-ux 10.20 backup command or other

The interactive interface for fbackup is sam. Just run sam and select Backup and Recovery.


Bill Hassell, sysadmin
Sajjad Sahir
Honored Contributor

Re: using hp-ux 10.20 backup command or other

Dear Jerry

u can use fbackup for more information see man fbackup, tar backup etc...

tar is available in all unix and fbackup is specific in hp-ux

second option is sam

see above posting

thanks and regards

Sajjad Sahir