I just restored a Matomo site from a database backup - lots of missing stats

Well, the title says the most I guess.

A site broke due to too much cli crap on the server, but I could access a recent database backup, only hours old, but when restoring it a lot of stats are missing. Like Visitors log and other more detailed items not being just the visitor count.

Are not all the visits data stored in the database?

What other things must one have a backup of if restoring a Matomo site?