The pfSense Store

Author Topic: command line config restore  (Read 20306 times)

0 Members and 1 Guest are viewing this topic.

Offline n3b

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
command line config restore
« on: February 01, 2008, 07:18:57 am »
I am running pfsense on an embedded system.

How can I restore a config from the shell?

Thanks :-)
Neil

Offline n3b

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: command line config restore
« Reply #1 on: February 01, 2008, 08:08:23 am »
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

Offline sullrich

  • Hero Member
  • *****
  • Posts: 5110
  • Karma: +7/-2348
    • View Profile
    • pfSense
Re: command line config restore
« Reply #2 on: February 01, 2008, 06:51:26 pm »
rm /tmp/config.cache if it exists before issuing reload_* commands.