Noob question on the config file

Started by wondering, February 20, 2024, 07:51:26 PM

Previous topic - Next topic
February 20, 2024, 07:51:26 PM Last Edit: February 22, 2024, 11:30:40 AM by wondering
[DELETED]

Every configuration option from the GUI goes to that file, yes. https://docs.opnsense.org/manual/backups.html
Logs are not saved alongside nor obviously inside. You don't get those in a restore.
Changes or additions made directly  in the filesystem will not be included i.e. templates, scripts, etc.
The backup will contain the record of installed plugins. After a restore, these records will help the system pull the necessary files from their repositories to get back to the restored state.

February 21, 2024, 01:44:18 AM #2 Last Edit: February 22, 2024, 11:30:49 AM by wondering
[DELETED]

It is the oppossite. Installing the config.xml to a clean install restores the state as per that config.

February 22, 2024, 12:52:44 AM #4 Last Edit: February 22, 2024, 11:30:59 AM by wondering
[DELETED]

I'll repeat myself :)
Logs are not saved alongside nor obviously inside. You don't get those in a restore.
Changes or additions made directly  in the filesystem will not be included i.e. templates, scripts, etc.
The backup will contain the record of installed plugins. After a restore, these records will help the system pull the necessary files from their repositories to get back to the restored state.

So when you restore a config file onto a newly installed system, the config will bring the configurations made on the UI and a record of plugins that need to be re-installed.