Operating System - HP-UX
1826364 Members
4905 Online
109692 Solutions
New Discussion

crontab and make_recovery

 
SOLVED
Go to solution

crontab and make_recovery


Hi,

I want to automatise our backups.
I have created the following, but are not sure if it will work?

0 0 * * 0 /bin/sh -c 'make_recovery -Av'

Regards
Paul
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: crontab and make_recovery

Paul,

Your command should work, I think, but I would suggest you first download the latest version of Ignite from http://www.software.hp.com/products/IUX/index.html and install that. Then change your command to something like this:

0 0 * * 0 /bin/sh -c 'make_tape_recovery -a /dev/rmt/_mn -I -v -x inc_entire=vg00'

Of course you will need to fill in the proper device file for your tape device (make sure you use the no-rewind device!).


Pete


Pete

Re: crontab and make_recovery


Hi,

Our supplier wont allow this. Im not allowed to change any software without them telling me to do it.

Thnx for reply, I will test the command..
Jeff Schussele
Honored Contributor

Re: crontab and make_recovery

Hi Paul,

Remember that cron commands start up in a very sparse environment. You should give the explicit path to the command - don't assume that the $PATH will be set as you want or even expect. And you really don't *have* to spawn a shell - one will spawned for the command:

0 0 * * 0 /opt/ignite/bin/make_tape_recovery -Ivx inc_entire=vg00

HTH,
Jeff

0 0 * * 0
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Stanimir
Trusted Contributor

Re: crontab and make_recovery

I wish recomend you:

00**0 /bin/sh -c 'make_recovery -Av -d dev-name-of-tape' , where dev-name-of-tape is
your unigue dev-file for your tape-device.
You need also to assign '> log'
to the end of this command, becouse
without this all messages,connected with
execution of this command will be written in Mail.

Regards,Stan
Camel_1
Valued Contributor

Re: crontab and make_recovery

You should use make_tape_recovery, here is what I have scheduled in all servers

4 4 * * 6 /opt/ignite/bin/make_tape_recovery -I -x inc_entire=vg00 > /var/tmp/make_ignite.log