Operating System - HP-UX
1753784 Members
7263 Online
108799 Solutions
New Discussion юеВ

Re: Backup/Restore Commands for HP UX

 
Mahesh_20
Advisor

Backup/Restore Commands for HP UX

Hello,

I have one project going on and we have SAP Basis person on the site.

We have two machines at two different sites within same campus. Each machine has a tape library connected to it.

As this is SAP server; server has 6 file systems from /sapdata1 to /sapdata6 on each machine.

Task is to backup the all the file system from first machine on tape and restore it on same file systems (like /sapdata1 backup from should get restored on /sapdata1 of target systems.)

Please provide us with all possible commands. (Unfortunately currently brtools of SAP is not configured; using with SAP Basis person can backup/restore datafiles.)

Regards.

Mahesh
7 REPLIES 7
Tim Nelson
Honored Contributor

Re: Backup/Restore Commands for HP UX

The only native tools in HPUX are.

tar
pax
cpio
fbackup
and some other not so popular.

fbackup is your best choice.
James R. Ferguson
Acclaimed Contributor

Re: Backup/Restore Commands for HP UX

Hi:

Be advised that while it is an incredible backup and recovery tool, 'fbackup' and its companion, 'frecover' are deprecated beginning at 11.31. While available, they will eventually disappear from some future release. The targeted replacement is 'pax' in its enhanced form.

Regards!

...JRF...
Mahesh_20
Advisor

Re: Backup/Restore Commands for HP UX

Hi,

Well I know these commands; but can any one of you please let me know the syntax..

Unix that I used to work on had..

tar -cvf /fs1 /fs2 /fs3 /tape_drive

and

tar -xvf /tape_drive to restore.

I am looking for correct syntax on 11.31 for tar and cpio if possible.

Regards

Mahesh
Ismail Azad
Esteemed Contributor

Re: Backup/Restore Commands for HP UX

Mahesh,

fbackup -f -i /sapdata1 -I (if online index required)

frecover -f -xNv (to check what has been backed up)

To recover
frecover -f -rv

In the first command -f is the destination device and -i is what to include in the backup

The second command contains -x which means to extract, -N do not actually recover. {to verify backup}

Third command is to recover the backup.

Else you can create a graph file
Create /var/adm/fbackupfiles
create a file called as graph inside it

Type
/sapdata1
/sapdata2
----- /sapdata6 (one by one on each line)

execute fbackup -f -u0g graph (for full backup). Incremental backups can also be taken u1g, u2g etc.
Recover with the same frecover command.

Please assign points!!!
Regards
Read, read and read... Then read again until you read "between the lines".....
James R. Ferguson
Acclaimed Contributor

Re: Backup/Restore Commands for HP UX

Hi (again):

> I am looking for correct syntax on 11.31 for tar and cpio if possible.

The manpages are your friend :-)

Regards!

...JRF...
Ismail Azad
Esteemed Contributor

Re: Backup/Restore Commands for HP UX

Dear Mahesh,

pax -wf paxtest /sapdata1 /sapdata2 /sapdata3.... etc
if u want it in cpio format just add -x cpio along with pax.

Easiest way to remember, there are 2 modes r, w and both!

w will write to the archive
r will recover
r and w will copy.

Dont forget to assign points mate. That's the simplest way it can b said.
Read, read and read... Then read again until you read "between the lines".....
Dennis Handly
Acclaimed Contributor

Re: Backup/Restore Commands for HP UX

>Unix that I used to work on had:
>tar -cvf /fs1 /fs2 /fs3 /tape_drive

The "tape" device is always after the -f:
tar -cvf /tape_drive /fs1 /fs2 /fs3

>I am looking for correct syntax on 11.31 for tar and cpio if possible.

You should toss both of those and use pax(1) for both, the syntax is more rational.