Skip to content

Dalesjo/pfsenseBackup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Backup script for Pfsense 2.4

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages