[] (https://flattr.com/submit/auto?user_id=echoes&url=https://github.com/echoes-tech/pfsense-remote-config-backup&description=Shell%20scripts%20for%20pfSense%20remote%20config%20backup.&lang=en_GB&category=software "Shell scripts for pfSense remote config backup")
- Overview
- Scripts Description - What the scripts do and why they are useful
- Setup - The basics of getting started with these scripts
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to these scripts
- Contributors
Shell scripts for pfSense remote config backup.
These scripts backup remotely pfSense configuration.
- A Unix shell
- Wget
mkdir -p /var/backups/pfsense
- Copy one of the following scripts in the folder
/usr/local/bin
with the namebackup-pfsense.sh
. - [optional] Edit script to change variables
USER
andPASSWORD
Get the 2.2.6 version here.
Get the 2.0 version here.
sh /usr/local/bin/backup-pfsense.sh pfsense.foo.bar
$Conf{XferMethod} = 'rsync';
$Conf{DumpPreUserCmd} = 'sh /usr/local/bin/backup-pfsense.sh $host pre';
$Conf{DumpPostUserCmd} = 'sh /usr/local/bin/backup-pfsense.sh $host post';
$Conf{RsyncShareName} = [
'/var/backups/pfsense'
];
$Conf{RsyncClientCmd} = '$rsyncPath $argList+';
$Conf{RsyncClientRestoreCmd} = '$rsyncPath $argList+';
$Conf{BackupFilesOnly} = {
'/var/backups/pfsense' => [
'config-*.xml'
]
};
Tested on Debian.
Echoes Technologies scripts on GitHub are open projects, and community contributions are essential for keeping them great.
The list of contributors can be found at: https://github.com/echoes-tech/pfsense-remote-config-backup/graphs/contributors