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 (2009) 1/19, 2/9, 3/9, 4/6, 5/4, 6/8, 7/6, 8/3.
2. 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 2008-04-24
Member
 
Join Date: 2007-05-18
Posts: 43
Rep Power: 0
longhill has an average reputation (10+)
Default backup command

Hello.
I need you to backup of the SCC.
I used:

# backup --help
usage:
backup [-h] [-d] [-l] [--purge DAYS] [--sched [on hh:mm <-m DayOfMonth> | <-w DaysOfWeek>] | off] [--tftp <ServerIP> [-path <Path>] [<Filename>]]
[--scp <ServerIP> <Username> <Password> [-path <Path>] [<Filename>]]
[--file [-path <Path>] [<Filename>]]


where:
-d Show debug messages
-l, --logs Back up log files -h, --help Show this help information
-t, --tftp Transfer backup package to TFTP server
-s, --scp Transfer backup package to SCP server
-f, --file Specify local backup package filename
-e, --sched Configure scheduled backup operation
-p, --purge Purge local backup packages older than DAYS


The option --logs which file .log save?
All log files or the last create with switchlog?

Thanks

Last edited by longhill; 2008-04-24 at 05:36.
Reply With Quote
  #2 (permalink)  
Old 2008-04-27
Senior Member
 
Join Date: 2005-08-29
Location: Upstate NY
Posts: 1,681
Rep Power: 5
chillyjim has an average reputation (10+)
Send a message via AIM to chillyjim Send a message via Skype™ to chillyjim
Default Re: backup command

IIRC it is all the files in $FWDIR/logs
Reply With Quote
  #3 (permalink)  
Old 2008-05-05
Member
 
Join Date: 2007-05-18
Posts: 43
Rep Power: 0
longhill has an average reputation (10+)
Default Re: backup command

I edit script for backup:

#!/bin/sh
. /etc/profile.d/CP.sh
cd /var/CPbackup/backups
echo | backup -d --file /var/CPbackup/backups/`date`_fw_export
scp `date`_fw_export root@172.29.198.23:/data/backup
rm `date`_fw_export.tgz
exit 0

Can I exec the backup command without me being asked "Are you sure you want to proceed?"
The command "echo |" not work !!!

Thanks
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 07:08.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0