Problem with restore a backup

Unfortunately, there is certainly a bug in the backup restore process.
I tried to re-install last night’s backup on a second RP4, after the reboot, the Mariadb component was not present.
I re-installed it, it created the empty db, at this point I have restored the db, but the energy totalizers are reset, even if in the restored db I see all the data.

Backup restore seems to be the Achilles’ heel for HA, if sensor histories are of little interest to me, I need energy historians.

Giuseppe