In short.
This guide helps self-hosted n8n administrators move workflow files and execution data to external storage, but licensed plans and careful retention management are required. It documents binary storage in S3 and Azure Blob Storage, plus execution-data storage in S3. The central operational distinction is deletion: providers expire binary files, while n8n prunes S3 execution data itself. When both share storage, broad lifecycle rules can delete execution data that n8n still references. Configuration, startup behaviour, compatibility and performance were not tested.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is the complete documentation page at [https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/use-external-storage.md], including its licensing notices, S3 and Azure binary-storage instructions, S3 execution-storage instructions, upgrade guidance and lifecycle warnings. All linked pages are excluded, including authentication references, general pruning settings, Terraform deployment instructions and provider documentation. No commands, deployments, storage operations or tests were executed; operational behaviour, performance and total cost remain unverified.
The overview
Identity
Use external storage is an n8n administration guide at [https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/use-external-storage.md]. It explains where a self-hosted instance can store data produced by workflow executions.
Binary data includes files and attachments; execution data is saved data associated with a workflow run. The guide treats their storage and deletion separately.
Assessment
The guide is useful when workflow data is placing substantial storage demands on an instance's database or filesystem. It provides concrete environment variables, storage paths, startup restrictions and retention warnings.
Its strongest practical contribution is explaining how apparently reasonable deletion rules can break access to retained data. It provides no measured performance improvement, capacity limit, reliability result or cost comparison.
Users
The intended readers are developers, system administrators and platform operators responsible for self-hosted n8n. They need access to deployment settings, an object-storage account and the relevant storage credentials or identity configuration.
Beginners can use it to understand the choices, but setup also requires provider documentation and knowledge of environment variables, restarts and retention policies. The feature is unavailable on n8n Cloud.
Capabilities
The page documents binary-data storage in AWS S3 and Azure Blob Storage, and execution-data storage in S3. Its shared-storage discussion also refers to Azure execution-data mode, but complete instructions for that mode are not supplied on this page.
Older binary files can remain readable after changing storage modes when their original mode remains enabled and the required credentials remain valid. S3 execution data remains associated with its original storage location when modes change.
Cloudflare R2 and Backblaze B2 are named as S3-compatible options that may be used, but n8n does not officially support them.
Using it
Requirements
External storage requires self-hosted Business or Enterprise with an active license. Enabling s3 or azure binary mode without a valid license prevents startup. S3 execution-data mode also prevents startup without a valid license.
S3 requires a configured bucket, endpoint, region and authentication. Azure requires a blob container; N8N_EXTERNAL_STORAGE_AZURE_CONTAINER_NAME is always required. Azure authentication can use a connection string, an account name and key, or managed identity through DefaultAzureCredential.
In queue mode, S3 execution-storage settings and the N8N_EXTERNAL_STORAGE_S3_* variables must be configured on every instance, including workers. The guide recommends upgrading main, worker and runner components to the same version simultaneously.
Mechanism
After enabling external binary storage, new files are written under workflows/<workflow-id>/executions/<execution-id>/binary_data/<binary-file-id>. S3 execution bundles use workflows/<workflow-id>/executions/<execution-id>/execution_data/bundle.json.
Changing execution-storage mode does not move existing execution data. n8n records each execution's storage location. Continued access to older externally stored data depends on retaining the necessary storage configuration.
Binary expiry is delegated to the storage provider. n8n manages S3 execution-data pruning through EXECUTIONS_DATA_* settings. The page also states that binary pruning operates on the active binary mode, so switching modes should not be assumed to clean up the previous store.
Setup
Activate the license before enabling external modes. For S3, create the bucket and configure N8N_EXTERNAL_STORAGE_S3_HOST, N8N_EXTERNAL_STORAGE_S3_BUCKET_NAME, N8N_EXTERNAL_STORAGE_S3_BUCKET_REGION, N8N_EXTERNAL_STORAGE_S3_ACCESS_KEY and N8N_EXTERNAL_STORAGE_S3_ACCESS_SECRET. Authentication autodetection is available through N8N_EXTERNAL_STORAGE_S3_AUTH_AUTO_DETECT=true. The sample bucket policy grants s3:* over the bucket and its objects; minimum required permissions are not established.
For S3 binary storage, set N8N_AVAILABLE_BINARY_DATA_MODES=filesystem,s3 and N8N_DEFAULT_BINARY_DATA_MODE=s3. For S3 execution storage, set N8N_EXECUTION_DATA_STORAGE_MODE=s3. Providers without a region can use auto. For HTTP storage endpoints, the guide specifies N8N_EXTERNAL_STORAGE_S3_PROTOCOL=http and a host configuration that includes the protocol.
For Azure binary storage, configure the container and authentication, then set N8N_AVAILABLE_BINARY_DATA_MODES=filesystem,azure and N8N_DEFAULT_BINARY_DATA_MODE=azure. The complete authentication variable list and precedence are in a linked page outside this scope. Restart n8n to load changes, and resolve lifecycle rules before enabling automatic deletion.
Example
Consider a hypothetical workflow that processes uploaded files. An administrator could retain execution data in the database while storing new binary files in S3 using N8N_AVAILABLE_BINARY_DATA_MODES=filesystem,s3 and N8N_DEFAULT_BINARY_DATA_MODE=s3. Keeping filesystem enabled allows older local binary files to remain readable.
A lifecycle rule scoped to workflows/ could expire workflow binaries, but only after checking for execution_data/ objects left by an earlier configuration. The expiry age also needs to account for files created before execution completion and executions retained for unusually long periods. This scenario illustrates the documentation; it was not run.
Assessment & evidence
Limitations
When binary and execution data use the same provider, they share a bucket or container and overlapping execution prefixes. n8n does not tag objects by data type. The guide provides no lifecycle configuration that expires only binary files in this arrangement and warns against expiring current objects because execution bundles may still be referenced.
Provider expiry follows object timestamps, while n8n measures execution age from completion. Matching expiry to EXECUTIONS_DATA_MAX_AGE therefore does not guarantee file availability. Annotated executions and executions in new, running or waiting states can outlive any fixed expiry period.
Whole-bucket or whole-container rules can also delete Chat Hub and agent attachments under chat-hub/ and agents/. Azure rules without prefixMatch affect the entire storage account. Even when execution data now stays elsewhere, historical execution bundles must be checked before adding binary expiry.
Reasoning
Storage placement and deletion policy need to be decided together. Moving files outside n8n changes who controls their lifetime, so external storage is not a complete retention solution by itself.
Keeping execution data in the database avoids placing execution bundles alongside binary files and makes workflow-prefix expiry easier to scope. This is a practical inference from the documented layout, not a performance finding. It does not solve timestamp differences or protect binary files needed by long-lived executions.
Alternatives
The page identifies database and filesystem execution-storage modes, and filesystem binary storage, as alternatives to external storage. Keeping execution data in the database is specifically mentioned as a way to avoid mixing execution bundles with external binary files.
AWS S3 and Azure Blob Storage are the documented binary-storage choices. R2 and B2 offer S3-compatible possibilities with an explicit lack of official n8n support. The evidence does not compare providers on price, performance or reliability.
Evidence
The evidence is the complete captured n8n documentation page at [https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/use-external-storage.md]. It supports the configuration details and warnings described here.
Linked n8n, AWS, Azure and GitHub pages are outside the available evidence. Nothing was executed. Startup outcomes, authentication, backward reads, pruning, upgrades and performance remain untested.
Access & freshness
Costs
A Business or Enterprise plan is required, but the page supplies no subscription prices or external-storage rates. Total operating cost and any savings from reducing database or filesystem storage are unknown.
Object versioning can preserve deleted or expired objects as older versions that continue to incur storage charges. Removing those versions requires separate lifecycle settings. No cost estimate or billing test is provided.
Rights
The page establishes a product entitlement: an active self-hosted Business or Enterprise license is required for these storage features.
It does not supply licensing terms for redistribution of the documentation or establish broader software-use rights. Permissions to redistribute the captured page or its examples are unknown from this evidence.
Freshness
The page was captured on 2026-11-23 at 09:33:01.570 UTC. Its source revision is sha256:435a332407658f3bb8f204c7b4b46e87a044e8f3b0e0b4a58a59b8ffe69dd9ad. A publication date and latest supported n8n version are not established.
The page explicitly identifies a change starting in n8n 2.6.4: N8N_EXTERNAL_STORAGE_S3_BUCKET_REGION may contain only alphanumeric characters and hyphens. Underscores or other special characters can cause startup connection errors even when older versions accepted the configuration.
Actions
Before deployment, confirm the active license, provider configuration, region format and storage modes. Inspect existing objects before writing lifecycle rules, including historical execution bundles, Chat Hub files and agent attachments. Account for previous object versions separately.
Validate startup, access to old and new data, mode changes and retention behaviour in a separate environment. Include waiting and annotated executions in retention checks. For distributed deployments, align component versions and configure every relevant instance. These validation results are currently unknown.
