mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
docs: added restore instructions to backup section in upgrading doc article, closes #5680
This commit is contained in:
parent
c6d5259c6d
commit
0ac9ec8f7e
@ -15,7 +15,7 @@ weight = 10
|
|||||||
We recommend everyone to upgrade Grafana often to stay up to date with the latest fixes and enhancements.
|
We recommend everyone to upgrade Grafana often to stay up to date with the latest fixes and enhancements.
|
||||||
In order make this a reality Grafana upgrades are backward compatible and the upgrade process is simple & quick.
|
In order make this a reality Grafana upgrades are backward compatible and the upgrade process is simple & quick.
|
||||||
|
|
||||||
Upgrading is generally always safe (between many minor and one major version) and dashboards and graphs will look the same. There can be minor breaking changes in some edge cases which are usually outlined in the [Release Notes](https://community.grafana.com/c/releases) and [Changelog]https://github.com/grafana/grafana/blob/master/CHANGELOG.md)
|
Upgrading is generally always safe (between many minor and one major version) and dashboards and graphs will look the same. There can be minor breaking changes in some edge cases which are usually outlined in the [Release Notes](https://community.grafana.com/c/releases) and [Changelog](https://github.com/grafana/grafana/blob/master/CHANGELOG.md)
|
||||||
|
|
||||||
## Database Backup
|
## Database Backup
|
||||||
|
|
||||||
@ -30,12 +30,21 @@ installed grafana to custom location using a binary tar/zip it is usally in `<gr
|
|||||||
#### mysql
|
#### mysql
|
||||||
|
|
||||||
```
|
```
|
||||||
mysqldump -u root -p[root_password] [grafana] > grafana_backup.sql
|
backup:
|
||||||
|
> mysqldump -u root -p[root_password] [grafana] > grafana_backup.sql
|
||||||
|
|
||||||
|
restore:
|
||||||
|
> mysql -u root -p grafana < grafana_backup.sql
|
||||||
```
|
```
|
||||||
|
|
||||||
#### postgres
|
#### postgres
|
||||||
|
|
||||||
```
|
```
|
||||||
pg_dump grafana > grafana_backup
|
backup:
|
||||||
|
> pg_dump grafana > grafana_backup
|
||||||
|
|
||||||
|
restore:
|
||||||
|
> psql grafana < grafana_backup
|
||||||
```
|
```
|
||||||
|
|
||||||
### Ubuntu / Debian
|
### Ubuntu / Debian
|
||||||
|
Loading…
Reference in New Issue
Block a user