Operating System - HP-UX
1752691 Members
5672 Online
108789 Solutions
New Discussion юеВ

Re: Automatic Ignite backup

 
SOLVED
Go to solution
Igor Sovin
Super Advisor

Automatic Ignite backup

Hi!
Is there any way to make some shedule in Ignite to make backups on different days?
9 REPLIES 9
Fabio Ettore
Honored Contributor

Re: Automatic Ignite backup

Hi,

I don't think there is a scheduling feature in Ignite....anyway you can do that by cron.
Insert a line in crontab for days when you wish to launch backups.

HTH.

Best regards,
Fabio

WISH? IMPROVEMENT!
Raj D.
Honored Contributor
Solution

Re: Automatic Ignite backup

You can use unix native , crontab for scheduling.

And put make_tape_recovery or make_net_recovery in cron with the help of a script.

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
David Nixon
Valued Contributor

Re: Automatic Ignite backup

You could schedule the script make_tape_recovery(1M) or
make_net_recovery(1M) via Cron.
Sp4admin
Trusted Contributor

Re: Automatic Ignite backup

Just create a cron job. here is a copy of the script I use. One note this on Itanium but should work. If not change the "BOT" to "DDS".

#!/usr/bin/ksh
# Program: ignite.sh
# Purpose: SEND results from Ignite to the UNIX ADMINISTRATORS

Rev=1.3
# Mods:

#

# Globals
PATH=/usr/bin:/sbin
HOST=$(hostname)
DEV=/dev/rmt/0m

ADMINS=Unix_Admins-T@xxx.xxx # Admins
LOG=/var/adm/make_recovery.msgs
DATE=$(date)
TODAY=$(date +%m/%d/%y)
PROG=$(basename $0)
SUBJ="Ignite results from ${HOST}, on ${DATE}" # 1.1

# MAIN

# cleanup /etc/lvmconf
cd /etc/lvmconf # 1.2
rm -f vg*.conf.old # 1.2

# Make sure we have a tape in the drive
STAT=$(mt -f ${DEV} stat)
TAPELOADED=$(print ${STAT} | grep "BOT online") # 1.3

if [ "${TAPELOADED}x" = "x" ]; then
mailx -s "${SUBJ}" ${ADMINS} <${LOG} # Create LOG & Note prog name & rev.
/opt/ignite/bin/make_tape_recovery -x inc_entire=vg00 -I >>${LOG} 2>&1

# Check Log for sucessful & only email if unsuccessful or warning
SUCCESS=$(tail ${LOG} | grep "completed successfully")
if [ "${SUCCESS}x" = "x" ]; then
mailx -s "${SUBJ}" ${ADMINS} <${LOG}
fi
mt -f ${DEV} rew
fi

# cleanup /etc/lvmconf
cd /etc/lvmconf # 1.2
rm -f vg*.conf.old # 1.2

Hope this helps,
Sp4admin
DCE
Honored Contributor

Re: Automatic Ignite backup



Igor,

We use cron to schedule a weekly ignite net backup.

Dave
f. halili
Trusted Contributor

Re: Automatic Ignite backup

Create a script file that does the ignite part "ex. make_tape_recovery -options -device. "

Then do a crontab -e to schedule your job.

Ex. This runs the ignite_backup script at june 01 @ 4am.

00 04 01 06 * /scripts/ignite_backup.sh

cheers,
f.halili
derekh
Phillip Thayer
Esteemed Contributor

Re: Automatic Ignite backup

Igor, I think that you should probably look at the crontab functionality for this...

Or did someone else already mention that? :)

Phil
Once it's in production it's all bugs after that.
Sp4admin
Trusted Contributor

Re: Automatic Ignite backup

come on give a new guy some points...:-)

Re: Automatic Ignite backup

You can use SAM to do an automate backup to the system.

#sam

Backup and Recovery
>> Automated Backup
>> Actions
>> Add