1838605 Members
2939 Online
110128 Solutions
New Discussion

backup in hpux

 
vaman
Frequent Advisor

backup in hpux

I need to take backup of selective directories from different file systems, the data is around 30 gb, what will the better method, how to go for it.
vaman kulkarni
6 REPLIES 6
Rodney Hills
Honored Contributor

Re: backup in hpux

What about "fbackup". Use -g option to specify file with list of directories to backup.

HTH

-- Rod Hills
There be dragons...
Deoncia Grayson_1
Honored Contributor

Re: backup in hpux

You can use Sam and choose Backup and Recovery and this will allow you to select which directories you would like to backup.
If no one ever took risks, Michelangelo would have painted the Sistine floor. -Neil Simon
Stf
Esteemed Contributor

Re: backup in hpux

Hello,

if you have just few filesystems to backup you can use tar command :

# tar -cvf /dev/rmt/Xm /Y /Z /W
where /dev/rmt/Xm is your backup media
and /Y /Z /W is the list of fs to backup

Stf ;-)
kamalnathan
Occasional Advisor

Re: backup in hpux

you can use one of the following to back up;

0. cp
1. tar
2. cpio
3. fbackup
4. dd
5. ignite ( you may need licence)
6. Omini ( you may need licence)

-Nathan
Con O'Kelly
Honored Contributor

Re: backup in hpux

Hi Vaman

Your best opton is probably to use the fbackup utility provided with HP-UX unless you have a commercial backup product available such as OmniBack (Data Protector, Legato etc).

Use fback as follows:
fbackup -v -f -i

For example to backup /var and /home to DDS drive (/dev/rmt/0m) use:
# fbackup -v -f /dev/rmt/0m -i /var -i /home

If you use DDS tapes your tape capacity may be less than 30GB (I think only DDS-4 has greater than 30GB capacity). You will need to consider this issue either by running separate backups or be available to change tapes (fbackup will prompt you when the tape is full).

As a point to note ensure you use Ignite-ux (its free) to backup your root vg (vg00) on a regular basis:
# make_tape-recovery -x inc_entire=vg00 -v -I
(backups vg00 vol group to DDS drive - /dev/rmt/0mn)

Don't rely on Ignite for your normal backup as it is hard to restore form and is really designed to recover your system quickly.

Cheers
Con
Steven E. Protter
Exalted Contributor

Re: backup in hpux

One caveat on fbackup.

Its a great tool but its not database aware.

If any of this 30 GB is say oracle data if you want the backup to be usable, down the database.

I've seen a script that does fbackup for hot database backups, but thus far the database vendors won't certify that.

So, if you are backing up hot data, shut down the database or consider a tool like Veritas or Data Protector that will do hot backups of oracle and other database data.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com