As of 23.05.2 (and also in SNAPSHOT), you can enable auto backup of the luci-app-statistics data on the rrdtool setup page.
See details at https://github.com/openwrt/luci/pull/6646 (jtkohl is @atownlede
in the forums, if you have questions about it).