How to backup all dashboards?

It is done for you by default to sqlite db file. Look under the data folder under root grafana folder