summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2023-02-09 07:58:12 +0100
committerPjotr Prins2023-02-09 07:58:12 +0100
commit3ce1e451a123480a9326eb05c527b42412ccddd0 (patch)
tree74c47cb720ad0054170348d1c3f7b4569408cf5d
parent258472b99908218f530d8725437e3496aaba088e (diff)
downloadgn-gemtext-3ce1e451a123480a9326eb05c527b42412ccddd0.tar.gz
backups
-rw-r--r--topics/systems/restore-backups.gmi31
1 files changed, 31 insertions, 0 deletions
diff --git a/topics/systems/restore-backups.gmi b/topics/systems/restore-backups.gmi
index 4e2843f..d64e7b9 100644
--- a/topics/systems/restore-backups.gmi
+++ b/topics/systems/restore-backups.gmi
@@ -95,3 +95,34 @@ root@tux02:/var/lib# chown mysql.mysql mysql
And we are running.
Next stop update genotype files.
+
+## Files
+
+GN has a file repo for genotype files, lmdb and such, next to MariaDB. Typically
+
+```
+root@tux02:/home/gn2/production/genotype_files# du -sh .
+38G .
+```
+
+the backup in drop lists, for example
+
+```
+root@tux02:/export5/backup/bacchus/drop/tux01# borg list borg-genenetwork/
+borg-GN2-home-20230207-04:00-Tue Mon, 2023-02-06 22:00:02
+borg-GN1-home-20230207-04:40-Tue Mon, 2023-02-06 22:40:01
+borg-GN3-home-20230207-04:41-Tue Mon, 2023-02-06 22:41:27
+borg-GN2s-home-20230207-04:41-Tue Mon, 2023-02-06 22:41:45
+borg-ZACH-home-20230207-04:42-Tue Mon, 2023-02-06 22:42:01
+borg-datafiles-home-20230207-04:42-Tue Mon, 2023-02-06 22:42:32
+```
+
+At this poing ZACH-home is the main dir, so this fetches all files
+
+```
+borg extract --verbose borg-genenetwork::borg-ZACH-home-20230207-04:42-Tue home/zas1024/gn2-zach/genotype_files
+```
+
+and we copy it to /home/gn2/production.
+
+We also have a separate data files 'warehouse', but that is not linked up with the webserver right now.