Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
/var/ipfire/collectd-migrate-4-to-5.pl --indir /var/log/rrd/ > /tmp/rrd-migrate.sh
sh /tmp/rrd-migrate.sh >/dev/null 2>&1
rm -rf \
- /var/log/rrd/collectd/localhost/cpufreq
- /var/log/rrd/collectd/localhost/interface
+ /var/log/rrd/collectd/localhost/cpufreq \
+ /var/log/rrd/collectd/localhost/interface \
/var/log/rrd/collectd/localhost/thermal-thermal_zone*/temperature-temperature.rrd
# start collectd after restore
/var/ipfire/collectd-migrate-4-to-5.pl --indir /var/log/rrd/ > /tmp/rrd-migrate.sh
sh /tmp/rrd-migrate.sh >/dev/null 2>&1
rm -rvf \
- /var/log/rrd/collectd/localhost/cpufreq
- /var/log/rrd/collectd/localhost/interface
+ /var/log/rrd/collectd/localhost/cpufreq \
+ /var/log/rrd/collectd/localhost/interface \
/var/log/rrd/collectd/localhost/thermal-thermal_zone*/temperature-temperature.rrd
# Start services