CPUG

The Check Point User Group

A Resource For The Check Point Community.  Fast.  Useful.  Independent.

1. CCSA/CCSE One-Week Dual-Certification Training Course with CPUG in San Francisco!
    Courses Starting 10/6, 11/3, 12/8, (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3, 9/7.
2. Corrent S3500 SecureXL Turbocards For Sale - Last Six Remaining - Get Your Spares!
3. Join Us On LinkedIn - We now have a CPUG group.


Go Back   CPUG: The Check Point User Group > Check Point Firewall-1/VPN-1 Platforms > Check Point SecurePlatform (SPLAT)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2006-04-30
gkiper gkiper is offline
Junior Member
 
Join Date: 2006-04-26
Location: israel
Posts: 4
Rep Power: 0
gkiper has an average reputation (10+)
Default backup to ftp script

Hi ,

i need a script that will backup the system and upload the backup file to ftp
server the script should have a schedule ability and fully automatic
Reply With Quote
  #2 (permalink)  
Old 2006-05-01
kva.kva kva.kva is offline
Senior Member
 
Join Date: 2006-01-26
Location: Moscow, Russia
Posts: 706
Rep Power: 3
kva.kva has an average reputation (10+)
Default Re: backup to ftp script

for example

DATE=`/bin/date +%Y%m%d`
UNAME='CP_server'
PTH='/var/CPbackup/backups/'
FILE=$UNAME'_backup_'$DATE
#
/bin/backup --file $FILE 1>/tmp/backup.log 2>&1 <<EOC
yes
EOC
#
/bin/echo "The MD5 checksum of the $FILE.tgz is: `/usr/bin/md5sum $PTH$FILE'.tgz' | /bin/awk '{print $1}'`." > /tmp/$FILE'_md5.txt'
#
/usr/bin/ftp -in ip_ftp_server <<EOC
user username password
binary
passive
put $PTH$FILE'.tgz' $FILE'.tgz'
put /tmp/$FILE'_md5.txt' $FILE'_md5.txt'
close
bye
EOC
#
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 19:55.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0