Project

General

Profile

Actions

Feature #12518

closed

Restore RRD and extra data from configuration backups when restoring during installation

Added by Viktor Gurov about 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Viktor Gurov
Category:
Installer
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
22.01
Release Notes:
Default

Description

Currently bsdinstall script simply removes any extra data or RRD data from the config.xml:
https://github.com/pfsense/FreeBSD-src/blob/devel-12/usr.sbin/bsdinstall/scripts/copy_configxml_from_usb#L67:

# Remove rrddata/xmldata if it is present, see https://redmine.pfsense.org/issues/11050
    REMOVE_DATA="rrddata captiveportaldata dhcpddata dhcpdv6data voucherdata sshdata" 
    for remdata in $REMOVE_DATA; do
        sed -i '' -e "/<$remdata>/,/<\/$remdata>/ d" ${recovery_dir}/config.xml
    done

it's better to keep this data, but add /cf/conf/config/bsdinstall_config_restore flag to run restore_backup() on boot

Actions

Also available in: Atom PDF