Skip to main content

A simple tool to fetch backups from the pfSense firewall

Project description

Usage

pfsense-backup is a simple tool to fetch configuration backups from the pfSense firewall.

Arguments

-h, --help

show the help message and exit.

-c FILE, --config FILE

the configuration file (default: ~/.config/pfsense-backup/config.yml)

-o FILE, --output FILE

the output file. The file name can contain strftime directives. If the argument is specified, directory, name and keep fields of the configuration are ignored.

Configuration file

The pfsense-backup needs a configuration file (default ~/.config/pfsense-backup/config.yml). As the file contains secrets, take care to set reasonable permissions. The file is in the YAML format.

Configuration file

pfsense:
   url: https://pfsense
   user: admin
   password: ...
   ssl_verify: true|false|/path/to/custom_cert.pem
output:
   directory: .
   name: "pfsense-%Y%m%d-%H%M.xml"
   keep: 12

All fields except password are optional.

host is a host name or an IP address.

name specifies the name of the output file. strftime directives are allowed.

keep removes all but the most recent *.xml files from the directory, that in this case has to be specified and has to be an absolute path.

directory has to already exist. As the backup is not encrypted and contains secrets the permissions should be set accordingly.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pfsense_backup-0.1.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

pfsense_backup-0.1.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page