Giter VIP home page Giter VIP logo

pfsensebackup's Introduction

pfSenseBackup

Continuous Integration Build MIT license PRs Welcome

pfSense Backup allows you to backup the complete configuration of your pfSense or OPNSense server using this command line application. It is easy to include this in a larger script for your backups and schedule it i.e. with the Windows Task Scheduler or in an Azure Function. It supports pfSense installations running at least pfSense version 1.2 up to the most recent pfSense version including pfSense Plus and OPNSense 19.7. It can be ran on a Windows machine, Mac, Linux and ARM devices such as the Raspberry Pi.

Download

Download the latest version

Release Notes

2.7.0 - released September 3, 2023 download

  • Compiled against .NET 6
  • Added option for including "Backup extra data" in the backup file
  • Added Windows 32 bit version
  • Added OSX ARM64 version

2.6.0 - released February 21, 2021 download

  • Added support for pfSense v2.5.0
  • Upgraded to .NET Core 3.1

Version History

System Requirements

This tool is self contained and does not have any dependencies on any frameworks. Under releases you will find compiled versions for Windows, Linux, iOS both on x64 machines and on ARM devices.

Usage Instructions on Windows

  1. Copy the downloaded .exe from releases to any location on a Windows machine where you want to use the tool
  2. Run the downloaded .exe to see the command line options
  3. Run the downloaded .exe with the appropriate command line options to connect to your pfSense or OPNSense server and download the backup

Feedback

Any kind of feedback is welcome! Feel free to drop me an e-mail at [email protected] or create an issue

pfsensebackup's People

Contributors

koenzomers avatar mnaiman avatar smccloud avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pfsensebackup's Issues

Executing when .net full is already installed

With 2.5.x - if I attempt to run backups without the -o parameter & the .net FULL is already installed on the server - we are getting backups saved to the .net full path on the C drive instead of the "current" directory. When I run the source in debug mode - I can see where it's getting the path from, but it seems like in certain scenarios it's being loaded into a temp space & then when the current path is being requested from Assembly.GetExecutingAssembly().Location, the path is in correct.

I know the workaround is to specify -o, but any thoughts on a more general fix?

Feedback

No issue to report, but just wanted to say thank you for this program - it works brilliantly

I am now saving data into a cloud storage account without the need of installing Curl on my windows server.

Works without issue on 2.4.5-RELEASE-p1

[BUG] Looks like it not work for pfSense Plus 22.05

Describe the bug
Looks like it not work on pfSense Plus 22.05 from [Confirmation] works with pfSense Plus 21.02 #15

To Reproduce
Steps to reproduce the behavior:
Backup via etc.: .\pfsenseBackup.exe -u xxxxxxxxxxxxxx -p xxxxxxxxxxxxxxxx -s pfsense.home.local -o C:\Temp
And you get this:
Connecting using protocol version 2.5.0
Authenticating
Requesting backup file
Retrieving backup file
No valid backup contents returned

Expected behavior
A downloaded backup of the configuration

N.B: Looks like it not shows invalid username/password too, id you change it to a wrong username or password.
Shows:
Authenticating
Requesting backup file
....

Versions (please complete the following information):

  • OS: Windows 11
  • pfSense: 22.05-RELEASE
  • pfSenseBackup: v2.6.0

code error 403

Hi,

Thank you for your soft,
I have a issue when I try to start the programme.

"
Connecting using protocol version 2.2
Authenticating
Retrieving backup file
Error: Le serveur distant a retourné une erreur : (403) Interdit.
"

I have a code error 403 forbiden

Do you know why ?

Error 400 Bad request

not sure what the issue is .
i have 7 FW working fine but this one just isnt happy .

connecting using protocol 2.3.3
error the remote server returned an error 400 bad request .

i am sure it is something i goofed up . PFsenseBackup rocks

image

How do I encrypt backups?

It would be helpful if the README included information on what encryption algorithm is used to encrypt the backups, and how to decrypt them.

[BUG] SSL error on Ubuntu 22.04

Describe the bug
SSL error on Ubuntu 22.04

To Reproduce
Steps to reproduce the behavior:
./pfSenseBackupv2.6.0-linux-x64 -u pfsbackup -p pfsbackupPassword -s pfs.domain.org:4444 -e "encryptPW" -norrd -usessl

pfSense Backup Tool v2.6.0 by Koen Zomers

Connecting using protocol version 2.5.0
Error: The SSL connection could not be established, see inner exception. Authentication failed, see inner exception.

When I run it on Windows, everything works perfectly.

Versions (please complete the following information):

  • OS: Ubuntu 22.04LTS
  • pfSense: 2.7
  • pfSenseBackup: 2.6.0

Doesn't Work with pfSense 2.4.4

Hi,
/unfortunately, since upgrading to pfSense 2.4.4 I can no longer use this to create daily backus.
I get the following error:

pfSense Backup Tool v2.4.3 by Koen Zomers

Connecting using protocol version 2.3
Authenticating
Requesting backup file
Retrieving backup file
No valid backup contents returned

Any chance of this being fixed?
Richie

[FEATURE REQUEST] Include extra data

Is your feature request related to a problem? Please describe.
if "Include extra data" function is more better.

Describe the solution you'd like
add function to backup "extra data"

Describe alternatives you've considered
no alternatives solution

Additional context
pf

Error: The SSL connection could not be established, see inner exception.

Hi

I am running the script succesfully on multiple pfsense routers for backups.

I added a new router but I get this error on it when running the batch:

Connecting using protocol version 2.5.0
Error: The SSL connection could not be established, see inner exception. The handshake failed due to an unexpected packet format.

Do you know what might cause this?

Syntax:
F:
cd F:\Backups\RouterBackups
pfSenseBackupv2.exe -u backup -p xxxxxxx -s x.x.x.x -o f:\Backups\RouterBackups\RouternameFolderx

TLS 1.2 Issue

First, great job, You safe a lot of my time.
Randomly, you can receive an exception caught by the SSL Certificat validation.
To fix it, just add

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls |
                                       SecurityProtocolType.Tls11 |
                                       SecurityProtocolType.Tls12;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.