Dear Crist
        
you can use the backup command, this saves all settings (interfaces,
routing, etc.) generating a relatively small file or also use the
snapshot, this saves all settings and Binary important but the file is
much higher.

I have a script scheduled in cron.

the script runs and downloads the file of the snapshot to another
server, sure that before you had to share a public key for ssh to make
the transmission of data without password.

annex the script


Best regards
Vagner Machado
CCSE


2008/10/24 Crist Clark <[EMAIL PROTECTED]>:
> Anyone know of or develop a command or simple procedure to
> bring an enforcement module back to an "installation fresh"
> state?
>
> In my lab tests, I often want to start over from a fresh
> install. Actually doing a fresh install is not terribly
> painful, but it requires me to actually go to the lab and
> put a CDROM in the drive, etc. It would be great to have
> a command or procedure to take the system back to its
> pristine state, or at least really close.
>
> Requirements are to lose all memory of interfaces, routes,
> policy, objects database, certificates and SIC, etc.
>
>
> Scanned by Check Point Total Security Gateway.
>
> =================================================
> To set vacation, Out-Of-Office, or away messages,
> send an email to [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> =================================================
>



-- 
[]´s
:-P



Scanned by Check Point Total Security Gateway.


=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
=================================================
#!/bin/sh
#################################################################################
# FUNCTION:
# execution and transfer snapshot files
#################################################################################
SNAPDIR="/var/CPsnapshot/snapshots"
SNAPCMD="/bin/snapshot"
SRV_LOGS="[EMAIL PROTECTED]:/checkpoint/backup"
DATAH="$(date +%F_%H-%M)"

cd ${SNAPDIR}

##### Remove old files #####
cd ${SNAPDIR}
find snapshot_* -mtime +2 -type f -print -exec echo arquivo: {} \;
find snapshot_* -mtime +2 -type f -exec rm -f {} \;


##### Run SnapShot #####
cd ${SNAPDIR}
echo y | ${SNAPCMD} -f snapshot_$(hostname)_${DATAH} && md5sum 
snapshot_$(hostname)_${DATAH}.tgz > snapshot_$(hostname)_${DATAH}.md5sum
##### Transfere o arquivo #####
scp -p snapshot_$(hostname)_${DATAH}.tgz ${SRV_LOGS}
scp -p snapshot_$(hostname)_${DATAH}.md5sum ${SRV_LOGS}

Reply via email to