System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

automatic backup configuration on hp-ux 11iv3

SOLVED
Go to solution
tandra
Frequent Advisor

automatic backup configuration on hp-ux 11iv3

hey all

how the automatic scheduled backup can be configured on an hp_ux 11 iv3..i think its totaly different from the hp-ux 11iv1..
so can someone help me plz in this configuration?

waiting for ur replies!

regards,
tandra
12 REPLIES
sujit kumar singh
Honored Contributor

Re: automatic backup configuration on hp-ux 11iv3

hi

If you are not using any backup software like Date Protector or Veritas NEtbackup and you are talking about taking a backup using the HP-UX commands(fbackup/tar/vdump),
why not try using the crontab and your favorite command like fbackup/tar/vdump etc.
regards
sujit
Jeeshan
Honored Contributor

Re: automatic backup configuration on hp-ux 11iv3

automatic schedule backup of what?
OS, Database files(RMAN or dump or archive log) or application flat file?

different aspects of backup and tools are using to take backup. and you can automate them as per your need.
a warrior never quits
tandra
Frequent Advisor

Re: automatic backup configuration on hp-ux 11iv3

thx sujit for this information

but if i have a backup for a software that is installed on the server..in my case i have NNM open view installed on the system so i have a backup for this software.

my question is how i can schedule this backup to be running once per month for example.

what is the configuration needed.

in the 11 iv1 i can do the scheduled backup procedure from the sam command.but how can i do it with the 11 iv3?

wainting for ur reply

thx
Ganesan R
Honored Contributor

Re: automatic backup configuration on hp-ux 11iv3

Hi,

In corporates, either HP data protector or veritas netbackup will be used to take care of scheduled backups. These are powerful backup tools needs some resources.

If you wish to do automatic scheduled backup for small setup or individual servers you can use cron. Put a crontab entry like below to take a full backup of /home filesystem in a tape every monday at 2AM.

00 02 * * 1 /usr/bin/tar cvf /dev/rmt/0m /home #weekly home backup
Best wishes,

Ganesh.
tandra
Frequent Advisor

Re: automatic backup configuration on hp-ux 11iv3

guys i have a script "ovbackup.ovpl" (this script is for the NNM backup) so when i run this script a NNM backup is performed.

all that i need is to schedule this backup! i dont need to do this backup manually every time by running the ovbackup.ovpl command .in other word i need to schedule this command to be running once per month for example!

how i can perform this!

thanks and regards
Ganesan R
Honored Contributor

Re: automatic backup configuration on hp-ux 11iv3

Hi,

If you are using this script to take backup, put the script with full path in cron as I mentioned in my previous reply...

Using #crontab -e command,

00 02 * * 1
The above script will run every monday 2.00AM.
Best wishes,

Ganesh.
tandra
Frequent Advisor

Re: automatic backup configuration on hp-ux 11iv3

hey ganesan,
you mean i need to run this command? plz check the syntax of the below command befor i run it!

crontab -e 00 02**1
it is correct ?

and if i need to schedule the backup script once a month..not once a week..

can u give me plz the syntax of the command!

thx

Dennis Handly
Acclaimed Contributor

Re: automatic backup configuration on hp-ux 11iv3

>plz check the syntax of the below command before I run it!
>crontab -e 00 02**1
You create a file that has: (you had some missing spaces)
00 02 * * 1
Then you use: crontab file-name.
Or you can use crontab -e and just enter your command lines in vi.

>if i need to schedule the backup script once a month.

You can use:
00 02 01 * * This does it on the first at 2 am.
sujit kumar singh
Honored Contributor
Solution

Re: automatic backup configuration on hp-ux 11iv3

Hi Tandra,


crontab command is the command to schedule jobs in UNIX.

crontab -e --- this is used to edit(add /remove) the Scheduled Tasks with the Cron Schedular.

crontab -l -- shall list the scheduled tasks by the Cron process.


i will give you an example that shall be helpful.

please go thru bith these links:

http://docs.hp.com/en/B2355-60103/crontab.1.html

and

http://docs.hp.com/en/B2355-60103/cron.1M.html


These must be helpful.


regards
sujit
Bill Hassell
Honored Contributor

Re: automatic backup configuration on hp-ux 11iv3

> automatic scheduled backup...

How do you know it was a scheduled backup in 11v1? Can you see a process running that is a backup program? You can use SAM to configure a backup and perhaps this was done on your older system.


Bill Hassell, sysadmin
tandra
Frequent Advisor

Re: automatic backup configuration on hp-ux 11iv3

thx sujit..the document was very useful

plz checkk my steps..when i run the command crontab -e it takes me inside the file

so all i have to do is to write the date of the scheduled backup for instance:

00 02 01 * *

right? im asking this question in order to verify my steps before configuring it at the customar

thx
sujit kumar singh
Honored Contributor

Re: automatic backup configuration on hp-ux 11iv3

hi



thx sujit..the document was very useful

plz checkk my steps..when i run the command crontab -e it takes me inside the file

so all i have to do is to write the date of the scheduled backup for instance:

00 02 01 * *

right? im asking this question in order to verify my steps before configuring it at the customar

thx




yes this should be sufficient

this enrty when added to the crontab shall mean that the command shall execute at 00 minutes 02 hours on 01 of every month

also just check that the command that you are specifying in the crontab "actually performs the backup when tried using the simple command prompt in the exact syntax".



but in the lines of Bill Hassel, i must say that how come you rhink that this was scheduled on the system.

you can again go to SMH and go to backup section and can give a try to the bcakup scheduling and config.

regards
sujit