There is [official documentation](http://docs.grafana.org/http_api/auth/) how to obtain the `TOKEN` for your installation.
There is an [official documentation](https://grafana.com/docs/grafana/latest/http_api/auth/)on how to create and obtain the `TOKEN` for your Grafana server.
If you use the hard-coded settings in `src/conf/` directory, but you want to have multiple configurations (for example, for multiple instances of grafana),
you can create multiple settings files in the `src/conf/` directory and use them when running `backup_grafana.sh` and `restore_grafana.sh`.
- If you use the hard-coded settings in `src/conf/` directory, but you have multiple instances of Grafana servers in your network that you would like to backup,, you can create multiple settings files in the `src/conf/` directory (with the name of the server for example) and use them when running `backup_grafana.sh` and `restore_grafana.sh`.
## How to Use
* First perform **Configuration** as described above.
* Use `backup_grafana.sh` to backup all your dashboards, datasources and folders to the `_OUTPUT_` subdirectory of the current directory.
* Use `backup_grafana.sh` to backup all your folders, dashboards, datasources and alert channels to the `_OUTPUT_` subdirectory of the current directory.
For example:
```bash
$ ./backup_grafana.sh
...
...
@@ -97,4 +98,4 @@ docker run --rm --name grafana-backup-tool \
## Notes
* Please have a look at the two scripts in the root directory if you need to customize something.
* Please have a look at the two bash scripts in the root directory if you need to customize something.