Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Simple local Config Backup?

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 96 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jhg
      last edited by jhg

      I've seen all the config backup threads that advocate using curl to manipulate the UI (get login page; submit login... etc). I've played with something much simpler:

      scp admin@my.pfsense.box:/conf/config.xml /backups/conf-YYYYMMDD-HHMMSS.xml
      

      ... run from a secure system on the LAN, which can then encrypt the file and upload it to the cloud.

      From experimentation I've determined that if I use the minimal backup settings ...

      Backup Area:         All
      Skip Packages:       False
      Skip RRD Data:       True
      Include Extra Data:  False
      Backup SSH Keys:     False
      Encryption:          False
      

      ... the file downloaded via scp is identical to what is downloaded via the UI.

      The raw config.xml seems to contain everything I would need to restore the system. It wouldn't have Captive Portal data (we don't use it), DHCP leases (not important in our scenario) or client ssh keys (also unimportant here).

      This seems like a quick and easy scheme to automate a local backup. Is this a viable strategy, or am I missing something?

      pfSense CE on Beelink EQ12 (N100 CPU, dual 2.5Gbe Intel NICs)
      Hitron CODA56 - Comcast 2.5Gb cable

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @jhg
        last edited by

        @jhg

        Read also Alternate Remote Backup Techniques.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.