This tool has been created for users who want to download pfSense configuration backups with ease and store the configuration files themselves.
It's based on https://doc.pfsense.org/index.php/Remote_Config_Backup.
Big note: if you want to support pfSense, you might want to get a gold subscription which supports both the project and you'll get access to the AutoConfigBackup tool.
docker run --rm -v /my/backup/folder:/app/backups gerwim/pfsense-backup https://192.168.0.1:8443 admin password
This will store the backup in /my/backup/folder. Just add the command above in a cronjob, task scheduler or something else to create backups on a recurring base.
cd into it)docker build -t pfsense-backup .docker run --rm -v /my/backup/folder:/app/backups pfsense-backup https://192.168.0.1:8443 admin passwordmkdir -p /opt/pfSense/backups/pfSense-{master,slave,another})vi autoBackup.sh with the contents below (modify where needed!)#!/bin/bash
BackupTarget() {
docker run --rm -v $1:/app/backups gerwim/pfsense-backup $2 $3 $4 >> /opt/pfSense/output.log
}
# Backup master
BackupTarget "/opt/pfSense/backups/pfSense-master" "https://10.10.10.2:444" "admin" "password"
# Backup slave
BackupTarget "/opt/pfSense/backups/pfSense-slave" "https://10.10.10.3:444" "admin" "password"
# Backup another pfSense
BackupTarget "/opt/pfSense/backups/pfSense-another" "https://10.10.10.4:444" "admin" "password"
chmod +x autoBackup.sh and run it: ./autoBackup.sh. You can run this file by cron to backup your pfSense systems automatically.Content type
Image
Digest
Size
90.5 MB
Last updated
about 7 years ago
docker pull gerwim/pfsense-backup