Skip to content

jalavoy/pfsense-backup

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

pfsense 2.3+ backup

Requirements

sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.7
  • python mechanize
sudo apt-get install python-pip
pip install mechanize

or

sudo apt-get install python-mechanize

I had a perl script to do this on 2.2, but since the update it hasn't worked. So I decided to start over with a language I'm not as familiar with.

I'm not a python guy at all so please excuse any less than ideal code in here. That said, it works fine.

You'll want to automate this with a cron job. I just symlink it into /etc/cron.daily/

ln -sv /path/to/backup-pfsense.py /etc/cron.daily

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages