https://github.com/hydrian/pfsense-backups
Automatically exported from code.google.com/p/pfsense-backups
https://github.com/hydrian/pfsense-backups
Last synced: about 1 year ago
JSON representation
Automatically exported from code.google.com/p/pfsense-backups
- Host: GitHub
- URL: https://github.com/hydrian/pfsense-backups
- Owner: hydrian
- License: apache-2.0
- Created: 2015-07-01T18:54:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T21:21:09.000Z (about 8 years ago)
- Last Synced: 2025-03-25T13:39:20.525Z (about 1 year ago)
- Language: Shell
- Size: 49.8 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.txt
- License: LICENSE.txt
Awesome Lists containing this project
README
REQUIREMESTS
* bash
* perl with URI::Escape module
* posix compliant logger executable
* wget
INSTALLATION
1. Place pfsense2-backup.sh in program directory. i.e. /usr/local/bin or /opt/bin
2. Make sure pfsense2-backup.sh is executable
3. Copy to pfsense2-backup.example.conf to configuration location (default: /etc/pfsense2-backup.conf)
4. MAKE SURE PERMISSIONS OF pfsense2-backup.conf ARE SECURE. i.e. chmod 0600
CONFIGURATION
* Edit configuration file
- Required Parameters -
PFSHOSTNAME='{pfSense IP/Hostname:pfSenseWebConfPort}'
If you are using a non-standard pfSense admin webConfigurator port, you can enter it here.
Ex. PFHOSTNAME='MyPFSenseBox:8443'
PFSUSER='{pfSense webConfigurator username}'
PFSPASS='{pfSense webConfigurator password}'
- Optional parameters -
BACKUPDIR='{directory to store backups}' (Default: /var/backups/pfense)
BACKUPRRD=true/false (Default: false)
ENCRYPTPASS='Encryption passphrase' (Default: disabled)
DEBUG=true/false (Default: false)
DO NOT ENABLE THIS LIGHTLY. THE OPTION CAN LEAVE SENSITIVE DATA IN TEMP FILES LAYING AROUND.
PARAMETERS
-c {FILE} Location of configuration file
-o Outputs generated backup file to STDOUT on completion
This is useful for passing off to other scripts
--help Displays help messages
USAGE
To run: pfsense2-backup.sh -c ${CONFIGFILE}
Example: pfsense2-backup.sh -c /etc/pfsense2-backup.conf
BEST PRACTICES
Create a pfSense user that is only authorized to 'Diagnostics: Backup & Restore' permissions