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

    Please help a newb: make a backup USB stick

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 3 Posters 4.1k 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.
    • F
      flip-mode
      last edited by

      Hello!  I recently learned about pfSense and saw right away that it would be perfect for my needs.

      Just last week I replaced our (my company's) old firewall with a pfSense firewall.  It is running on a small form factor Dell machine with the hard drive removed.  It is a Pentium D with 1GB of RAM.

      I have moved the config file to an external USB drive and it works perfectly.

      But what I want to do now is remove that USB drive and take it "off site" to keep in a safe place for disaster recovery purposes.

      How can I remove the USB stick and insert a different USB stick and resave the config file to that second USB stick?

      Or, do I just have to shut down the machine and take the USB stick to another computer and copy the file manually?

      Thanks!

      1 Reply Last reply Reply Quote 0
      • F
        flip-mode
        last edited by

        Anyone?

        1 Reply Last reply Reply Quote 0
        • GruensFroeschliG
          GruensFroeschli
          last edited by

          http://forum.pfsense.org/index.php?action=search
          keywords: "backup config"

          About the 10th entry.

          Or if you just want to backup/restore a config:
          Diagnostics –> "Backup/Restore"

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • F
            flip-mode
            last edited by

            @GruensFroeschli:

            About the 10th entry.

            Thank you for the reply! Do you mean this thread:
            http://forum.pfsense.org/index.php/topic,6998.msg54745.html#msg54745

            where the 2nd last post says

            Correct procedure:

            • format your USB-Stick with filesystem FAT/MSDOS
            • plug in your USB-Stick BEFORE you boot up with the livecd
            • the livecd will search on bootup on all available media for /conf/config.xml and use it if it finds one
            • as it doesn't find one on the empty stick it will bootup with a default config and offer option 98 (which only is there if a suitable media was found that could hold the config.xml)
            • run option 98 and assign your floppy or usbstick or cf-card in usb-reader or whatever you want to use
              - option 98 will disappear and you will never need it again! don't touch either the usb stick or that option again! all changes that you do in the webgui will be written to the config media instantly without the need to perform tasks from the console or whatever!
            • on next bootup the livecd will search on available media for /conf/config.xml and as it now finds one will use it. option 98 will remain hidden as you are already running from an external config media and changes will be written to it directly.

            which, in the part I bolded, says not to touch the USB stick.

            If that is the case then it sounds like shutdown and manual copy on another machine is the only way.  Or did I not find the post you were referencing?

            1 Reply Last reply Reply Quote 0
            • B
              blak111
              last edited by

              You could just do the second thing he mentioned and go to Diagnostics > Backup/Restore and download the config to another USB key.

              1 Reply Last reply Reply Quote 0
              • GruensFroeschliG
                GruensFroeschli
                last edited by

                Well if you really want it on another USB-stick.

                1: I would download the config from an install with the 98 option.
                2: Shutdown, Remove the USB-stick and plug in the second USB-stick.
                3: Set up a dummy-install with the 98 option and restore on this install the downloaded config from before.

                We do what we must, because we can.

                Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                1 Reply Last reply Reply Quote 0
                • F
                  flip-mode
                  last edited by

                  Thanks everyone.  I may not be asking my question very clearly. Essentially: is there a way to "mount" a second USB stick, backup the config from the first stick to the second stick, and then "umount" the second stick, all without shutting down the machine? (please forgive me, I am a complete *nix noob)

                  1 Reply Last reply Reply Quote 0
                  • B
                    blak111
                    last edited by

                    Yea, just go to the backup restore section on the web interface and download the configuration file. Once  you have that, just save that to a fat formatted usb key in a folder named conf with a filename of config.xml

                    When pfSense is booting up, it will search for a config on removable media with that path and name (/conf/config.xml)

                    1 Reply Last reply Reply Quote 0
                    • F
                      flip-mode
                      last edited by

                      blak111 - :-[  I am so sorry - I did not understand that the first time you said it!  Thank you!  Apologies for being dense ;D

                      Thanks everyone, for your answers and your patience!

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