1 What to back up

WhatWhere it isWhy it mattersHow
The databaseThe pgdata18 volume, or your managed PostgreSQLEvery record, the audit log and its hash chain, users and password hashes, roles, settings, integrations and their encrypted secrets, and the job queue (the pgboss schema)pg_dump, physical backups or point-in-time recovery
Attached filesThe uploads volume, or one Azure Blob container or S3 bucketEvidence, policy documents, contract versions, executed copies and certificates. The database names them and does not hold themA file archive, or versioning and soft delete on the store
.envThe installation directory, or your platform's secret storeHolds the secrets below, and every setting the host setsA password vault, updated whenever it changes, and stored apart from the backups
Compose additionsdocker-compose.override.yml, your own Caddyfile.*, .deploy-keep, any certificates you addedWhatever you changed from the releaseWith .env, or in your own configuration repository
The releaseThe release archive or commit, recorded in .deployed-commit by deploy/update.shA restore needs this release or a later one, as an earlier release cannot read a newer schemaKeep the archive, or know the commit
The age private keyYour vault, never the serverWithout it, encrypted backups cannot be readA password vault
caddy-data (optional)Docker volume, with the tls profileIssued certificates and the ACME account, or tls internal's private root. Caddy issues new ones, so this only matters for a private root that browsers were told to trust, or to avoid hitting Let's Encrypt's rate limits while rebuildingAny volume backup

1.1 The secrets

SecretWithout it
SETTINGS_ENCRYPTION_KEY, or AUTH_SECRET when that is unsetEverything encrypted with it stays encrypted for good: the SMTP password or Microsoft 365 client secret, LDAP bind password, SAML private key, other integration secrets kept in settings, such as DocuSign and Entra, and the address and signing secret of every notification webhook. Every two-step verification enrollment stops working too. See "A lost secret"
AUTH_SECRETEveryone signs in again, and SAML sign-ins in progress must start over. If SETTINGS_ENCRYPTION_KEY is unset, also the row above
POSTGRES_PASSWORDSet a new one. See "A lost secret"
APP_DB_PASSWORDChoose a new one: migrate sets it on every start

Integrations live in the database. Entra, SAML, LDAP, DocuSign, email, branding, templates, notification rules and every other setting made in the application come back with it, so they need no backup of their own. Their secrets come back readable only with the key above. Things held outside the application still need their own care: the SAML certificate your identity provider trusts is in the database, and an expiring Entra or DocuSign credential is renewed where it was issued.

The application role and the owner role are PostgreSQL roles, which pg_dump leaves out. You do not need pg_dumpall: under Compose, the image creates the owner from POSTGRES_USER, and migrate creates the application role and reapplies its grants. On a managed server, the owner role is the one you made when you set the server up, and the cloud guides have the steps.

1.2 What needs no backup