Outline backup and restore
Pair the PostgreSQL backup with Outline’s local filesystem or S3 objects, and retain the original application secrets.
Last updated
On this page (5)
Outline · Backup and restore
Before you start
- Matching Outline release.
- Access to PostgreSQL, deployment secrets and the configured upload backend.
- An isolated test hostname, identity configuration and storage location.
Procedure
- Pause application writes and capture
pg_dump -Fc -f outline.dump <source_db>using the connection defined by the deployment. - Copy local uploads from
FILE_STORAGE_LOCAL_ROOT_DIR(official sample:/var/lib/outline/data) or back up configured S3 objects. Capture the effective environment, includingSECRET_KEY, in protected storage. - Run
pg_restore --exit-on-error -d outline_test outline.dumpin a new database with matching roles. Restore uploads to a test location, keep the originalSECRET_KEY, update URL/database/storage/identity settings to test values and start the same version.
Verify the result
- Check a private collection’s access rules, document versions and an inline image or file download.
- Verify test identity and storage settings do not mutate production services.
Official documentation
- Outline Docker hosting documentation
- Outline official sample environment: secrets and upload backends
