louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
57.69k stars 5.21k forks source link

Store settings outside the statisctis DB so we can git ignore statistics and keep settings on Git #4319

Closed carlos-algms closed 9 months ago

carlos-algms commented 9 months ago

⚠️ Please verify that this feature request has NOT been suggested before.

🏷️ Feature Request Type

Other

🔖 Feature description

Save settings, dashboards, and monitors config, in a different place other than a single .DB file. So we can include those files on Git and have historical data and visual diffs of what was changed individually per section.

✔️ Solution

It would be great to have settings stored under /app/data/settings/ as JSON or YAML.

❓ Alternatives

I'm currently adding kuma.db to Git, but it keeps changing every 1 minute or so, and it is most likely including data that is not crucial to restore an instance in case of an issue.

📝 Additional Context

It could help with the UI backups as well, as we could just zip the /settings folder and restore and override everything inside of it. Or instead of replacing, we could "merge" existing settings with the ones being imported.

CommanderStorm commented 9 months ago

I'm currently adding kuma.db to Git

Git is not designed for backuping binary blobs I would not recomend using it this way.

The rest is a duplicate of these two issues (closing as duplicate):