> I run a nightly cron for some of my boxen for this handy script: > > > #!/bin/bash > DATESTAMP=`date +%F-%k%M%S` > wget -qO /istorage/infrastructure/prod_edgefw03/backup- > $DATESTAMP.xml --post-data 'Submit=Download' --user=admin -- > password='secretpassword' --no-check-certificate > "http://HOSTNAME/diag_backup.php" > > > Replace your password and hostname of your box, and it'll download > your config to a datestamped XML file. > > ***CAVEAT*** I'm using this against a handful of pfSense boxes > running 1.2.2 and 1.2.3. This may not work with the 2.x series. It > is untested there... ***CAVEAT***
This has been discussed here before. Any 1.x scripts that require authentication will not work with 2.x. For a simple example of exactly this, see http://doc.pfsense.org/index.php/Remote_Config_Backup#Pulling_on_2.0 -Adam Thompson [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] Commercial support available - https://portal.pfsense.org
