Operating System - HP-UX
1834774 Members
3164 Online
110070 Solutions
New Discussion

full backup of a brand-new Unix box RX3440

 
SOLVED
Go to solution
I.Delic
Super Advisor

full backup of a brand-new Unix box RX3440

Hi guy's,

Here i'm again. This time i have a question about backup. Can i be so free to ask you to write some script for me.
Wat shuld the script be doing?

Ofcourse full backup of my systeem . I want to use fbackup command to backup my system. I don't want to use SAM to get this done. I wil put it in in my CRONTABLE.
Next this cript shuld send me a mail if something goes wrong.
The script shuld generate a logfile with al information about the backup.(when is it started, what is on the tape, when is it finished, how mutch i backuped ..etc)

I want to be sure evrything is on the tape in case of disaster.

Of coourse i wil stop al database's demons before i start to backup my system.

Thank you in advance

Idriz


7 REPLIES 7
Thayanidhi
Honored Contributor

Re: full backup of a brand-new Unix box RX3440

You can use make_tape_recovery for this purpose. see man page of make_tape_recovery for more details. You can make a small script to stop your application, then run make_tape_recovery with all vg's and schedule in the cron. The status od the backup is written to /var/opt/ignite/logs.
For disater recovery this is the best method because this creates bootable tape. where as fbackup tapes are not bootable.

TT
Attitude (not aptitude) determines altitude.
I.Delic
Super Advisor

Re: full backup of a brand-new Unix box RX3440

hi TT,

It is good solution but i'm looking voor een sciprt that use fbackup.

I must be able to restore file that i backuped to one another box (RP5440).


who kan ik restore single file from one IGNITE TAPE.

Of course i made a IGNITE TAPE after i installed OS+aditonal software. I use this tape for disaster.

Idriz
Thayanidhi
Honored Contributor

Re: full backup of a brand-new Unix box RX3440

Hi,

In general Ignite recovery used for root backup. so only VG00 should be here. You need to cre-create this tape whenever there is change in the root file system (vg00). It is also possible to restore single file from a ignite image. when you run make_tape recovery use -I option. You can recover some other model server using this tape. The kernel will regenerated for you automatically by ignite ux. also you can restore single files to another server.

See man page for fbackup about fbackup syntax. You use either -i (include) -e (exclude) options or create graph file like below

i /u01/data
i /u02/userdata
e /u02/userdata/tmp (if you want exclude some thing from included trees)

# Backup script

fbackup -g -A


TT
Attitude (not aptitude) determines altitude.
KapilRaj
Honored Contributor

Re: full backup of a brand-new Unix box RX3440

You may use tar as well. see the man pages

Kaps
Nothing is impossible
Bill Hassell
Honored Contributor
Solution

Re: full backup of a brand-new Unix box RX3440

I would not recommend tar, cpio, dump, pax, vxdump, etc for full backups. These are legacy (old) utilities that lack many of the features needed in a modern backup utility. Without going into a lot of details, fbackup is the best and fastest utility for HP-UX. I have attached a script but it requires a parameter file to maximize throughput on DDS/DLT tapes. This file looks like this:

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

Just copy this into a file called fbackup.params (you'll need to read the script to see some of the customization that is needed).

Now this tape is perfect for retrieving individual files and directories. It is many times faster than tar/cpio, etc and much easier than using an Ignite backup. However, you should still run make_tape_recovery about once every 2-4 weeks. Use the Ignite tape when the boot disk has been destroyed and the fbackup tape for selected files/directories.


Bill Hassell, sysadmin
Fadia Almarei
Super Advisor

Re: full backup of a brand-new Unix box RX3440

Hi your script will include the following

"
date
fbackup -f /dev/rmt/0m -iv . -I index.pwd
date
"
fadia.marei
Krishnan Viswanathan
Frequent Advisor

Re: full backup of a brand-new Unix box RX3440

Did you also consider database backup methods ? You may be able to do online backups without shutting the instances. At system level, fbackup always worked great for me.