Migrate authentik-nix to a new machine
mainWhen migrating an authentik-nix deployment, follow these steps:
- Data Migration: Copy
/var/lib/authentikto the new machine. Be aware that this directory contains symlinks; the/mediadirectory is particularly important. - Database: Dump the database according to upstream documentation. Since certificates are stored in the database by default, restoring the database will migrate your certificates.
- Version Pinning: Lock the specific revision of
authentik-nixused in your build to prevent accidental upgrades or downgrades during the migration process. - Domain Testing: Authentik can run on different domains or base URLs. You can test the deployment on a temporary domain before updating your production DNS records.