earthcubeprojects-chords / chords

EarthCube CHORDS application code
GNU General Public License v2.0
25 stars 13 forks source link

Fix backup script for grafana v10 #609

Closed MisterMartin closed 4 months ago

MisterMartin commented 5 months ago

In the draft 1.1.0-rc5, chords_control —backup crashes when saving the grafana artifacts.

It’s simply because it is accessing a grafana folder which no longer exists. Removing this will fix the problem.

Grafana doesn’t seem to have a builtin backup-restore procedure, but we should investigate what the accepted procedure is. A preliminary search indicates that our approach is reasonable.

Be sure to test the restore procedure with a new backup file.

MisterMartin commented 4 months ago

The backup script was saving specific subdirectories in /var/lib/grafana. In v10, plugins/ might not exist. So now the script just saves all of /var/lib/grafana.

Completed in 139b14aaf87f6f6d4944c97ff8e21bd8b19fa7e8.