Backup and restore
warning
Local backups are only supported for docker-compose installs. If you want to backup a Kubernetes instance locally, use an S3-compatible server such as minio
#
Backupnote
Local backups are enabled by default, and will be run daily at 00:00
Local backups can be created by running the following command in your authentik installation directory
This will dump the current database into the ./backups
folder. By defaults, the last 10 Backups are kept.
#
RestoreRun this command in your authentik installation directory
This will prompt you to restore from your last backup. If you want to restore from a specific file, use the -i
flag with the filename:
After you've restored the backup, it is recommended to restart all services with docker-compose restart
.
#
S3 Configuration#
Preparationauthentik expects the bucket you select to already exist. The IAM User given to authentik should have the following permissions
#
docker-composeSet the following values in your .env
file.
If you want to backup to an S3-compatible server, like minio, use this setting:
#
KubernetesSimply enable these options in your values.yaml file
Afterwards, run a helm upgrade
to update the ConfigMap. Backups are done automatically as above, at 00:00 every day.