diff options
author | tcmal <me@aria.rip> | 2024-08-23 01:03:50 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-23 01:05:10 +0100 |
commit | 5028503d6d2a21d9e4cb3100a2f9b2795cb5d4bd (patch) | |
tree | 94f38bbdfabc7b2549b97541b4d9880b5eb332e7 /BACKUPS.md |
Diffstat (limited to 'BACKUPS.md')
-rw-r--r-- | BACKUPS.md | 37 |
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/ +``` |