Scheduling backup to start after one completes.
- 14 years ago
if [ $2 = "NAME OF WINDOWS POLICY" ]
then
OUTF=/usr/openv/netbackup/bin/PARENT_END_CALLED.<NAMEOFWINDOWS POLICY>
if [ -s $OUTF ]
then
/bin/rm -rf $OUTF
fi
if [ ! -f $OUTF ]
then
touch $OUTF
fi
echo ${dateStr} "-----------------------------" >> $OUTF
echo ${dateStr} " CLIENT: $1" >> $OUTF
echo ${dateStr} " POLICY: $2" >> $OUTF
echo ${dateStr} " SCHEDULE: $3" >> $OUTF
echo ${dateStr} "SCHEDULE TYPE: $4" >> $OUTF
echo ${dateStr} " STATUS: $5" >> $OUTF
echo ${dateStr} " STREAM: $6" >> $OUTF
echo ${dateStr} " STREAM_CNT: $7" >> $OUTF
echo ${dateStr} "-----------------------------" >> $OUTF
/<installpath>/openv/netbackup/bin/bpbackup -p <NAME OF LINUX POLICY> -s <NAME OF SCHEDULE TO RUN> -h <NAME OF LINUX CLIENT> -S <MASTERSERVER> -t 0 >> $OUTF
this is just an exmaple and you should test for your enviroment.
if you have a different schedule for fulls on the weekend they you will need to add if statments to test if it is a day you want to run a full then use a different schedule name.
all the info will be in the OUTF file defined. you can look at that or even email it to you if youwant.
make the changes of putiting in the correct info for your enviroment.