Firewall-1

Re: [FW-1] Assistance Requested: Provider-1 Crontab to automate mds_bac

Subject: Re: [FW-1] Assistance Requested: Provider-1 Crontab to automate mds_backup
From: "Larson, Todd (LNG-DAY)" <Todd.Larson AT LEXISNEXIS DOT COM>
To: FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM
Date: Thu, 28 Dec 2006 09:43:36 -0500
I'm running P-1 NGX R60 HFA_02 (SPLAT) and will be upgrading to R62 1 Q
2007.  I worked on this a little yesterday, trying what you suggested with
no luck.  I also played around with running the cron job in the context of
the admin account-with no luck.  I will open a tac case with CP to see what
they have, try to guilt them into documenting an automated backup procedure
for P-1 ;-)

 

  

 

  _____  

From: cisco4ng [mailto:cisco4ng AT yahoo DOT com] 
Sent: Saturday, December 23, 2006 11:44 AM
To: Mailing list for discussion of Firewall-1
Cc: Larson, Todd (LNG-DAY)
Subject: Re: [FW-1] Assistance Requested: Provider-1 Crontab to automate
mds_backup

 

which provider-1 version?  NG AI R55w or NGx?  I am running NG with R55w and
this is

what I use for my crontab mds_backup:

 

# stop the mds prior to backup

# then backup mds to /tmp directory

#!/usr/bin/sh
source /opt/CPshrd-R55/tmp/.CPprofile.csh
cd /tmp
/opt/CPmds-R55/scripts/mdsstop
echo "/opt/CPmds-R55" | /opt/CPmds-R55/scripts/mds_backup

 

Your problem with the crontab is that it has to get the environment variable
for the crontab to

work properly.  

 

cisco4ng



"Larson, Todd (LNG-DAY)" <Todd.Larson AT LEXISNEXIS DOT COM> wrote:

Hello,

I'm struggle with getting a crontab working to automate the mds_backup
process on Provider-1; I'm not a shell guru. I believe my issue is with
syntax of getting the crontab to execute the mds_backup command. I've
pasted what I have below.

#!/bin/sh
# This script is run nightly as a cron job
#
echo
echo "`date` - Script Started" 
#
cd /var/mds_backup
# the -b switch permits the backup to run regardless of whether an
administrator is logged in
# 
mds_backup -b
# done
#
echo "`date` - Script Completed"

Thanks in advance for your assistance.

=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to LISTSERV AT amadeus.us.checkpoint DOT com
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
fw-1-owner AT ts.checkpoint DOT com
=================================================

 

 __________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to LISTSERV AT amadeus.us.checkpoint DOT com
in the BODY of the email add:
set fw-1-mailinglist nomail
=================================================
To unsubscribe from this mailing list,
please see the instructions at
http://www.checkpoint.com/services/mailing.html
=================================================
If you have any questions on how to change your
subscription options, email
fw-1-owner AT ts.checkpoint DOT com
=================================================

<Prev in Thread] Current Thread [Next in Thread>