aboutsummaryrefslogtreecommitdiff
path: root/BACKUPS.md
diff options
context:
space:
mode:
Diffstat (limited to 'BACKUPS.md')
-rw-r--r--BACKUPS.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/BACKUPS.md b/BACKUPS.md
new file mode 100644
index 0000000..f2aba85
--- /dev/null
+++ b/BACKUPS.md
@@ -0,0 +1,37 @@
+# Backups
+
+Backups are done using Restic, to multiple sources.
+`modules/services/multi-site-backup.nix` provides a simple wrapper that lets us specify the things to backup separately from the sites we backup to.
+Currently, backups are stored in separate backblaze B2 buckets.
+
+The passwords for all backups are randomly generated and stored in Terraform state.
+They can be restored as normal using Restic.
+
+The rest of this document outlines application-specific restore procedures.
+
+
+## Authentik
+
+```
+$ podman volume import authentik-media authentik-media
+$ podman volume import authentik-certs authentik-certs
+$ cat authentik.pgdump | podman exec -it authentik-postgres su postgres -c 'pg_restore -d authentik -v -1'
+```
+
+## Miniflux
+
+```
+$ cat miniflux.pgdump | sudo -Hu postgres pg_restore -d miniflux -v -1
+```
+
+## Soft Serve
+
+```
+$ mv soft-serve /var/lib/soft-serve
+```
+
+## Storage Box
+
+```
+$ mv * /mnt/storage/
+```