From 5028503d6d2a21d9e4cb3100a2f9b2795cb5d4bd Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 23 Aug 2024 01:03:50 +0100 Subject: basic kiosk module --- BACKUPS.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 BACKUPS.md (limited to 'BACKUPS.md') 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/ +``` -- cgit v1.2.3