System history restore

Basic Information:

Printer Model: daVinci AiO
MCU / Printerboard:BTT SKR Mini E3 / Pi 2

Fill out above information and in all cases attach your klippy.log file. Pasting your printer.cfg is not needed
Be sure to check our Knowledge Base and in particular this and this post

Describe your issue: Recovering printer history from SD card.

The SD card in the Raspberry Pi suffered a write failure and corropted the OS to where it would not complete a boot process. I was able to save some of the printer data files [~7000 files] and the config files so I was able to create a working system. Is there a way to restore the history file ? The filament use and stats would be useful to have.
I found amongst the recovered data two MS Access database files but no way to read them.

For future events it would be useful to be able to backup and restore a system - is there a script for that ? A utility to backup the system weekly could be useful.

For the OctoPrint frontend there is: