OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Can I restore part of a config.xml?
« previous next »
  • Print
Pages: [1]

Author Topic: Can I restore part of a config.xml?  (Read 1047 times)

cybermaus

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
    • View Profile
Can I restore part of a config.xml?
« 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.
Logged

chemlud

  • Hero Member
  • *****
  • Posts: 2113
  • Karma: 94
    • View Profile
Re: Can I restore part of a config.xml?
« Reply #1 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...
Logged
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • General Discussion »
  • Can I restore part of a config.xml?
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2