Config Backup XML is HTML page

Started by 5k7m4n, March 06, 2022, 05:02:42 AM

Previous topic - Next topic
I saved the backup of the config by clicking download and saving the config-[myrouterdns]-[date]-xml file.

I then replaced the hardware, installed a fresh copy opnsense, setup the basic config, and downloaded backup of a fresh config.

I went to compare the 2 xml files to migrate settings and realized that both xml files are actually the webpage.

<!doctype html>
<!--[if IE 8 ]><html lang="en-US" class="ie ie8 lte9 lte8 no-js"><![endif]-->
<!--[if IE 9 ]><html lang="en-US" class="ie ie9 lte9 no-js"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--><html lang="en-US" class="no-js"><!--<![endif]-->
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="robots" content="noindex, nofollow, noodp, noydir" />
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="copyright" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1" />

    <title>Backups | Configuration | System | [myrouterdns] </title>
...


Running:
OPNsense 22.1.2_1-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1m 14 Dec 2021

Looks like a bug. The page you see is likely the gege you use for download. You can use the backup from an external server if you have pushed it there or you can download it via the os-backup plugin or via SSH (SCP or SFTP).

I was able to boot the old machine offline, backup the config with the following process and then import it into the new install via the web.

mkdir /media/usb
mount_msdosfs /dev/da0s1 /media/usb
cp -R /conf /media/usb


Not sure if there is anything else I should backup for plugin configs. Everything seems to be back up and working.

March 07, 2022, 05:43:12 PM #3 Last Edit: March 07, 2022, 05:45:33 PM by aimdev
Just done a backup, looks like xml to me, here is the start of the file
<?xml version="1.0"?>
<opnsense>
  <theme>opnsense</theme>
  <sysctl>
    <item>
      <descr>Increase UFS read-ahead speeds to match the state of hard drives and NCQ.</descr>
      <tunable>vfs.read_max</tunable>
      <value>default</value>
    </item>
    <item>


here is the release info
***GOT REQUEST TO CHECK FOR UPDATES***
Currently running OPNsense 22.1.2_1 (amd64/OpenSSL) at Mon Mar  7 16:43:49 GMT 2022

This appears to be the latest for my installation (non development)