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

  1. Capture a consistent database backup using the engine’s supported method; for a file copy of SQLite, stop writers first.
  2. Preserve the persistent .n8n directory and securely record any externally supplied encryption key. Coordinate separately stored binary data with the database recovery point.
  3. 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.

Official documentation

Have Pilae operate n8n

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.