How to backup postgres db for all grafana dashboards

I am using postgres db for grafana config database instead of sqllite.

My question is how can I backup the dashboards, contact points, alert and all other data from this db & restore it back. Is there any example?

Also what is the easiest alternative backup & restore method for above scenario? API calling is not easiest one click option to me.

the backing up part and restoring you can use postgres db documentation

then restore the data to a test environment and see what happens