diff --git a/config/rootfiles/core/191/update.sh b/config/rootfiles/core/191/update.sh
index a2d61ec52..fb06896d9 100644
--- a/config/rootfiles/core/191/update.sh
+++ b/config/rootfiles/core/191/update.sh
@@ -72,6 +72,15 @@ telinit u
 /etc/init.d/unbound restart
 /etc/init.d/suricata restart
 
+# Create collectd 4.x to 5.x migration script from rrd contents, run the script that
+# was created and then remove the old interface directory if it is present as it will
+# be empty after the migration has been carried out.
+/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
+if [ -d /var/log/rrd/collectd/localhost/interface/ ]; then
+	rm -Rf /var/log/rrd/collectd/localhost/interface/
+fi
+
 # This update needs a reboot...
 touch /var/run/need_reboot
 
