Skip to content

Back up n8n workflows, database, and encryption key

Workflow exports alone are not a complete recoverable n8n instance.

Protect your data firstKeep a current off-server backup before reinstalling, updating, changing firewall rules, or running an application installer.
On this page

A complete recovery set

Keep the n8n user folder, the actual database, deployment settings, and any external file or binary-data storage. Back up custom nodes when your workflows depend on them. Record the application version.

Preserve the encryption key

Credentials are encrypted. Recovering the database without its matching encryption key can leave those credentials unusable. Save the key securely outside the VPS; never paste it into a support ticket or AI chat.

Use a consistent backup

When using SQLite, copying a live database while writes continue can produce an inconsistent copy. Use the vendor's supported consistent backup approach. External PostgreSQL requires its own database backup. Workflow and credential exports do not include all users, settings, and execution history.

Verify recovery

Test on an isolated compatible instance before relying on the backup. Keep restored workflows from contacting real external systems during testing.

n8n backup reference.

Was this not enough?Include the service number, exact error, and time of the problem. Never send a password or private key.
Contact support