OPNsense Forum

English Forums => General Discussion => Topic started by: cybermaus on May 16, 2021, 03:44:44 PM

Title: Can I restore part of a config.xml?
Post by: cybermaus on May 16, 2021, 03:44:44 PM
On a old 18.7.9 build,

due to ssd failure and an outdated cold standby build, I am in urgent need to "transplant" only the <monit>, <openvpn> and various <ca> and <cert> sections.


Some context: I do have a recent backup, but its of the failed device, not the currently running slight different hardware cold standby one. And I cannot get onsite. Therefore reboots must be a "sure thing" and I am scared to apply the entire backup XML.


Can such partial config transplant be done easily, with little to no risk to the core routing?

Can I simply remove anything except the <monit>  from XML, and then import it via the GUI? Or would such import overwrite everything, leaving a nearly emtpy config.

Or should I manually edit and merge both XML before importing it?

Or do I need to really re-enter every monit line and ca/cert manually one by one?



Many thanks for any advise.
Title: Re: Can I restore part of a config.xml?
Post by: chemlud on May 16, 2021, 04:35:27 PM
System -> Configuration -> Backups go to Restore section and see drop-down menu for which parts of the config can be imported separately...