Where are sensor log stored and how to restore them

Hi guys,

I have a NAS and I do the backups everyday.
Few days ago I receive a NUC and create a VM and restore from backup but all my log data sensor isnt there.
When doing the restore, after 30mins I refresh the page to see if it has finished and it did but without any old logs. The .tar file was 350MB and now I tried to do a new FULL BACKUP and it is only 30MB… Somebody knows how to recover the old data?

Checking the folder I discovered the file home-assistant_v2.db and as the guide said it should store the sensor history I guess. What happens If overwrite this file with the old one?