summaryrefslogtreecommitdiff
path: root/topics/systems/restore-backups.gmi
diff options
context:
space:
mode:
authorPjotr Prins2023-02-07 13:03:36 +0100
committerPjotr Prins2023-02-07 13:03:36 +0100
commit0db8a79857d18314fedcdfe045594e9d4f940501 (patch)
tree9e7989081060d405ef1dbc4d2c98a6a63d8a8d85 /topics/systems/restore-backups.gmi
parentc7373f8f6f28b0594f9b70853b951dc9a293b24d (diff)
downloadgn-gemtext-0db8a79857d18314fedcdfe045594e9d4f940501.tar.gz
On backups and drop services
Diffstat (limited to 'topics/systems/restore-backups.gmi')
-rw-r--r--topics/systems/restore-backups.gmi37
1 files changed, 37 insertions, 0 deletions
diff --git a/topics/systems/restore-backups.gmi b/topics/systems/restore-backups.gmi
new file mode 100644
index 0000000..b9d4596
--- /dev/null
+++ b/topics/systems/restore-backups.gmi
@@ -0,0 +1,37 @@
+# Restore backup
+
+## Borg
+
+We use borg backups. Load a recent borg, for example from my profile
+
+```
+source /home/wrk/opt/borg/etc/profile
+```
+
+
+The backup passphrase needs to be set.
+
+```
+source /home/ibackup/.borg-pass
+```
+
+Now run against a repo on 'tux02'
+
+```
+borg list /export3/backup/tux01/borg/borg-tux01/
+borg-backup-mariadb-20221004-03:13-Tue Mon, 2022-10-03 22:13:11
+```
+
+The last backup on 'tux02' is from October 2022 - after I did a reinstall. That is not great.
+
+According to sheepdog the drops are happening to 'space' and 'epysode', but 'tux02' is missing:
+
+=> https://rabbit.genenetwork.org/sheepdog/index.html
+
+## Mariadb
+
+The first step is to find where the current mariadb is running. This will be a symlink in /var/lib/mysgl -> some dir.
+
+We typically run the database on an nvme partition. Check if there is enough space(!). It may be you need to remove the old database after making a backup (if it is not in borg).
+
+Next, find the backup. Typically it is in /export/backup