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

    Reinstall pfSense with backed up .xml

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 4 Posters 1.5k 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.
    • R Offline
      RickTosch
      last edited by

      Hi there,

      I used to run pfsense on a USB attached to a computer.
      This USB flash stick has failed so I have to reinstall pfsense on a new one.

      I have a backup .xml file that I took a while back in WebGUI.
      Instead of reinstalling pfSense and then restoring, I understand I can feed config.xml file during installation as per this Wiki: https://doc.pfsense.org/index.php/Automatically_Restore_During_Install
      So if I understand correctly, I plug 3 USBs into my computer:

      USB1: pfSense image
      USB2: exFAT formatted. contains folder: \conf\config.xml. as per the Wiki above, this config.xml should be magically copied over to the new pfSense install.
      USB3: new USB where pfSense will live

      Do I have this right?

      Thanks,

      1 Reply Last reply Reply Quote 0
      • KOMK Offline
        KOM
        last edited by

        Looks like it, but you might want to stick to FAT32 instead of exFAT just to be safe.  It may not matter at all but the doc does explicitly say DOS/FAT.

        1 Reply Last reply Reply Quote 0
        • DerelictD Offline
          Derelict LAYER 8 Netgate
          last edited by

          I don't know that I would go through that trouble for a one-off restore. If I had a custom baseline for 10+ units maybe.

          Why not just install, connect a laptop to LAN, http to 192.168.1.1, and restore the config?

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 0
          • R Offline
            RickTosch
            last edited by

            @KOM:

            Looks like it, but you might want to stick to FAT32 instead of exFAT just to be safe.  It may not matter at all but the doc does explicitly say DOS/FAT.

            My USB stick is 64GB, i didnt get an option to format as FAT. And perhaps of this, this method did not work.

            @Derelict:

            I don't know that I would go through that trouble for a one-off restore. If I had a custom baseline for 10+ units maybe.

            Why not just install, connect a laptop to LAN, http to 192.168.1.1, and restore the config?

            I ended up doing exactly what you described. I would agree that one would need 3 USB devices and that is not always feasible. Perhaps this process could be refined further with the ability to place that config.xml file on the same installer USB stick.

            1 Reply Last reply Reply Quote 0
            • JeGrJ Offline
              JeGr LAYER 8 Moderator
              last edited by

              "Perhaps this process could be refined further with the ability to place that config.xml file on the same installer USB stick."

              That would be nice, but would also require to mount the FreeBSD filesystem in your currently running OS where you create said stick. If I'm not mistaken, even the installer stick is partitioned with the freebsd filesystem & slices and e.g. Windows (and some linuxes) have a bit of a problem with reading and writing to that :)

              Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

              If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

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