grafana-backup.rst (1783B)
1 .. 2 This file is part of GNU TALER. 3 Copyright (C) 2014-2023 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU Affero General Public License as published by the Free Software 7 Foundation; either version 2.1, or (at your option) any later version. 8 9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. 12 13 You should have received a copy of the GNU Affero General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 16 @author Javier Sepulveda 17 18 Grafana backup 19 ############## 20 21 .. contents:: Table of Contents 22 :depth: 1 23 :local: 24 25 Backup grafana configuration file 26 ================================= 27 28 .. code-block:: console 29 30 # mkdir grafana-backup 31 # cp /etc/grafana/grafana.ini grafana-backup 32 33 Backup Grafana plugin files 34 =========================== 35 36 In our case yet we don't use any Grafana plugins, but the plugin 37 folder is include in our backup script. 38 39 .. code-block:: console 40 41 # mkdir -p grafana-backups/plugins 42 #cp /var/lib/grafana/plugins grafana-backup/plugins 43 44 Backup the database 45 =================== 46 47 - For grafana.taler.net, we are currently using SQL Lite. 48 49 .. code-block:: console 50 51 # cp /var/lib/grafana/grafana.db /root/grafana-backup/grafana.db-june-27 52 53 54 Backup all files with Borgbackup 55 ================================ 56 57 For undertaking our backups we use Borkbackup. 58 All the above instructions are included into our databases backup script with Borg. 59 60 * `More information <https://grafana.com/docs/grafana/latest/administration/back-up-grafana/>`_