# 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/ ```