Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 783 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 783 Bytes

pfsenseBackup

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

Example:

pfsenseBackup -d /var/backup/pfsense/ -h 192.168.0.1 -P 443 -u admin -p mypassword -D

Return codes

  1. Successfull backup
  2. Missing parameter
  3. Directory does not exist or is not writable.
  4. wget is missing or can not be found in path.
  5. gzip is missing or can not be found in path.
  6. backupfile could not be downloaded, possible network error/timeout.
  7. backupfile does not include xml tag <pfsense>, possible wrong credentials.
  8. webconfiguration is not responding on used port.
  9. tmp directory is not a directory or not writable