OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: wondering on February 20, 2024, 07:51:26 PM

Title: Noob question on the config file
Post by: wondering on February 20, 2024, 07:51:26 PM
[DELETED]
Title: Re: Noob question on the config file
Post by: cookiemonster on February 20, 2024, 10:58:38 PM
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.
Title: Re: Noob question on the config file
Post by: wondering on February 21, 2024, 01:44:18 AM
[DELETED]
Title: Re: Noob question on the config file
Post by: cookiemonster on February 21, 2024, 10:05:08 AM
It is the oppossite. Installing the config.xml to a clean install restores the state as per that config.
Title: Re: Noob question on the config file
Post by: wondering on February 22, 2024, 12:52:44 AM
[DELETED]
Title: Re: Noob question on the config file
Post by: cookiemonster on February 22, 2024, 10:41:17 AM
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.