Arksine / moonraker

Web API Server for Klipper
https://moonraker.readthedocs.io
GNU General Public License v3.0
1.05k stars 406 forks source link

Have an auto backup mechanism for the LMDb database #819

Open samwiseg0 opened 7 months ago

samwiseg0 commented 7 months ago

Is your feature request related to a problem? Please describe

In migrating my system to a fresh OS I was unable to restore a backup of that database. I came to learn that LMDb is architecture dependent and I would have to convert the database from 32bit to 64bit. More info here https://github.com/Arksine/moonraker/issues/192

Describe the solution you'd like

I believe providing an auto DB backup mechanism could solve multiple issues.

Auto backups could provide:

Describe alternatives you've considered

Using an external script to dump and manage database backups. This presents some challenges since ideally you would want to ensure that moonraker is not actively using the DB before pulling the data.

Additional information

No response