How to to backup Alert Templates and Alert Rules

Hi @steve.hoffman

Thanks for the update and I apricate your work.

So, the updated script works (Backup and Restoration) for both SQLite DB (<=2.39.0) and PostgreSQL migrated (>=2.40).

Yep, you can take backup from a SQLLite based PMM and apply to a newer instance of PMM. The backup/restore script does not handle any of the migration routines, that is done as part of the restore to an upgraded instance (it invokes pmm-update-perform process which handles all the ansible migration tasks.

Thanks, @steve.hoffman for the confirmation.

Hi @steve.hoffman

I believe we should test the script to see if it works with PMM 3.x or versions higher than 3.0.

If not, please fix the script for backing up the PMM server data.

Thanks
Naresh

As 3.0 gets closer to GA I’ll certainly do my best to ensure support for it but this isn’t something that the formal team owns
this was something I did on the side for a different need and it started taking on a life of it’s own (isn’t that how software works! :rofl:). I will talk to the PM to see if this is something worth building into the UI for PMM so that regular PMM updates can be scheduled and retrieved but it’s not a high demand request from what I can tell so may fall low on the team’s priority list. If you ever want to contribute to it just let me know and I’ll make you a collaborator on my github repo for sure!

Hi @steve.hoffman

Sorry, I assumed it was part of the PMM. Sure, I’ll help whenever 3.0 is published.
If we can incorporate this into the PMM release, it will be more useful and allow us to run backups from the GUI.