n8n backup and restore
Recover workflows and usable credentials, not just exported workflow JSON.
Last updated
On this page (5)
n8n · Backup and restore
Before you start
- Source version, database engine, effective encryption key location, persistent data paths, and binary backend.
- Isolated instance with schedules, incoming webhooks, and production integrations unable to run.
Procedure
- Capture a consistent database backup using the engine’s supported method; for a file copy of SQLite, stop writers first.
- Preserve the persistent .n8n directory and securely record any externally supplied encryption key. Coordinate separately stored binary data with the database recovery point.
- Restore the state on the same release first; set the recovered key before starting, and use test endpoints for any manual execution.
Verify the result
- Open a known workflow and confirm a restored test credential can authenticate without exposing its value.
- Open a backed-up execution and read a known binary attachment where execution history and binary data were in scope.
