Backup script for pfSense 2.3 or above. Downloads config file to directory and store it as a gzip file. Based on information from the pfSense doc https://doc.pfsense.org/index.php/Remote_Config_Backup
pfsenseBackup -d /var/backup/pfsense/ -h 192.168.0.1 -P 443 -u admin -p mypassword -D
- Successfull backup
- Missing parameter
- Directory does not exist or is not writable.
- wget is missing or can not be found in path.
- gzip is missing or can not be found in path.
- backupfile could not be downloaded, possible network error/timeout.
- backupfile does not include xml tag <pfsense>, possible wrong credentials.
- webconfiguration is not responding on used port.
- tmp directory is not a directory or not writable