blob: f2aba852fd2f415515f88e480c59ac0fb6f24ea2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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/
```
|