configuration backup always contains RRD data, sometimes twice

Started by tcm1010, Today at 03:16:11 AM

Previous topic - Next topic
My configuration backups currently seem to always contain RRD data, regardless if the option "Do not backup RRD data" is checked or not in the web GUI.

Taking a closer look at the backup XML file, an XML tree browser shows:

if "Do not backup RRD data" is checked:

[...]
<syslog/>
+<rrddata></rrddata>          # RRD data is there
+<schedules></schedules>
</opnsense>


if "Do not backup RRD data" is unchecked:

[...]
<syslog/>
+<rrddata></rrddata>          # RRD data is still there...
+<schedules></schedules>
+<rrddata></rrddata>          # ...and another copy is here!
</opnsense>


From what I can gather of the GUI backups I have taken manually via the web GUI in the past few months... I started with OPNsense version 25.7.11-2, and backups without the RRD data were about ~70 kB in size, with the RRD data, 2.5 MB.  This is what I expect.

I updated to version 26.1, and then the backups with and without the RRD data were of equal size, about 2.7 MB at the time.  So regardless of the web GUI option, the backups now contained the RRD data.

At the time, I discovered in the logs I was experiencing the error in issue 9686 (https://github.com/opnsense/core/issues/9686), and so I applied the patch mentioned therein:

# opnsense-patch 6933841c6

The errors in the logs went away, as expected.  However, the backups with the RRD data were now ~6 MB in size (!) and without the RRD data ~3 MB in size.  (See the XLM browser snippet mentioned above.  This is my current state.)

I then upgraded to 26.1.2_5 and also installed the plug-in os-sftp-backup to try automated backups.  The sftp backups are ~3 MB in size.  Given my current situation, I do not know if these are supposed to include the RRD data or not.  (There does not seem to be a separate option to include or not include the RRD backups in the sftp backup section of the web GUI.)


So, now the questions:

1.  How can I get back to a state where the configuration backups without the RRD data are "small" again?

2.  If the os-sftp-backup plug-in is working as designed (i.e., including the RRD data), how may I request an option in that section of the web GUI with the same option, i.e., "Do not backup RRD data"?


P.S.  For completeness, the /conf/config.xml file is ~3 MB and has one copy of the rrddata.