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

    Command line config restore

    Scheduled Pinned Locked Moved General pfSense Questions
    3 Posts 2 Posters 30.3k 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.
    • N Offline
      n3b
      last edited by

      I am running pfsense on an embedded system.

      How can I restore a config from the shell?

      Thanks :-)
      Neil

      1 Reply Last reply Reply Quote 0
      • N Offline
        n3b
        last edited by

        I kinda figured it out.

        once in your shell, you have to remount the /cf partition as writeable

        make a note of the permissions on /cf/conf/config.xml

        mount -u /cf

        Then copy in your config

        scp <source> /cf/conf/config.xml

        make sure your permissions are okay

        Then reload the config

        /etc/rc.reload_all start

        all done  ;D

        Neil

        1 Reply Last reply Reply Quote 0
        • S Offline
          sullrich
          last edited by

          rm /tmp/config.cache if it exists before issuing reload_* commands.

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