Command line config restore

  • I am running pfsense on an embedded system.

    How can I restore a config from the shell?

    Thanks :-)

  • 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


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