2026 n8n Self-Hosted File Storage: How to Choose?

Suitable: For a single-instance n8n deployment, start by evaluating persistent filesystem storage. For queue mode, follow n8n’s documented default and confirm that every processing component can access the required storage.

Not suitable: If you need high-volume model inference or model training, binary file storage choices will not solve that compute requirement.

This guide is for developers handling PDFs, images, and workflow attachments who want to avoid unnecessary memory pressure or lost files.
It also helps operators planning queue mode check whether the main instance, workers, and webhook processors can reach the same storage.
Team leads responsible for retention need a plan for file growth, cleanup, and backup before moving workloads.

Last updated October 19, 2026. We checked version behavior, storage modes, queue requirements, and cleanup guidance against the n8n v2.0 breaking changes, binary data documentation, and execution data management documentation.

Choose storage by deployment shape

Should self-hosted n8n store files in a database or on disk? For a single instance handling ordinary workflow files, evaluate persistent filesystem storage first. It keeps binary files out of the main process’s memory path and avoids using the database as the file repository. That choice only works if the files live on storage that persists across container replacement.

For queue mode, do not carry the single-instance recommendation over unchanged. n8n documents database storage as the default for queue deployments, while filesystem storage is not a supported queue-mode design. A shared mount alone does not make an unsupported configuration supported. Use the queue mode documentation to verify the current requirements before adding workers.

n8n 2.0 changed binary data behavior and distinguishes the default direction for regular and queue deployments. Check the v2.0 change notes against the version you actually run; don’t assume an older environment’s setting or migration behavior carries forward.

The practical decision depends on more than file size:

Check single-instance file handling

How can you avoid binary data using memory when processing large files? Set the documented binary data mode for a regular deployment, mount the n8n data location on persistent storage, and then test a representative workflow. The relevant environment variable is N8N_DEFAULT_BINARY_DATA_MODE; the official environment-variable reference describes valid values and behavior.

A minimal Compose fragment can illustrate the intent:

services:
  n8n:
    environment:
      N8N_DEFAULT_BINARY_DATA_MODE: filesystem
    volumes:
      - ./n8n-data:/home/node/.n8n

Treat this as an example, not a universal path prescription. Confirm the active n8n data directory in your deployment and ensure the mounted host directory is the one the running container actually uses. If your Compose file mounts a different path, the environment setting alone does not make that mount persistent.

We use a small verification sequence before relying on filesystem storage:

  1. Record the deployed version and mode. Check the running container’s environment and compare the version-specific behavior with n8n’s documentation.
  2. Inspect the mount declaration. Review the rendered Compose configuration, not only the source file. Confirm that the data directory maps to a persistent host path or an explicitly managed volume.
  3. Run a representative workflow. Use a normal attachment and a larger file typical of the workload. Confirm that the workflow completes and that the file can be read by the next node.
  4. Inspect the actual data location. Check the container’s mount information and the host directory after the run. Verify that binary data appears in the expected persistent location rather than only in a temporary container layer.
  5. Recreate the container in a test environment. Repeat the read operation after replacement. If the workflow can no longer access the file, stop and fix persistence before moving production data.
  6. Test recovery and cleanup separately. Restore from the backup in an isolated environment and verify that execution records do not point to missing binary files.

A useful command for checking the resolved Compose configuration is:

docker compose config

Then inspect the running container’s mounts:

docker inspect n8n --format '{{json .Mounts}}'

The output should identify the expected data path and its host-side source. The exact output depends on the Compose project and container name, so use the values from your deployment rather than copying a sample result. If the mount list does not show the directory you intended to persist, fix that first.

For large-file workflows, also inspect each node that reads, transforms, or forwards the binary payload. A successful download does not prove that later steps use the same file reference correctly. Compare the run’s input and output, check for failed executions, and watch the host and container memory during a representative test. We do not assign a universal file-size threshold: workflow structure, concurrency, and the file-processing nodes all affect the result.

Compare the supported storage paths

Use this table as a decision tool, not as a promise that every mode works in every topology.

Deployment or need Storage direction What to verify before committing
Single n8n instance with ordinary attachments Persistent filesystem storage The configured mode, mounted data path, container-recreation behavior, and backup coverage
Single instance with files retained in a database Database storage Database growth, backup size, restore procedure, and the current n8n guidance for your version
Queue mode with workers Database storage by default Follow the documented queue-mode requirements and test the full path through the relevant processes
Queue mode needing files outside the database Supported external storage, if eligible Current n8n licensing terms, supported provider and configuration, credentials, and migration behavior
Filesystem idea for multiple queue workers Do not treat a shared path as sufficient Confirm current support in n8n documentation; shared visibility does not override an unsupported mode

In a single-instance deployment, filesystem storage is often the clearest option when you want files outside the database, but only if persistence and backup are handled deliberately. Database storage can simplify the relationship between execution data and binary payloads, but it shifts storage growth and restore planning to the database.

For queue deployments, start from the documented default rather than trying to force a filesystem pattern that is not supported. Can multiple workers share filesystem storage? A common path is not enough to make filesystem mode a supported queue-mode choice. If a workflow needs queue processing, use the storage method n8n documents for that topology and verify the main instance and processing components against the current queue requirements.

Move files outside the host only with a supported design

External storage can make sense when files should not remain on the n8n host or when the deployment’s database and filesystem policies do not fit the workflow. n8n documents an external-storage feature, but the official external storage page specifies its supported setup and licensing conditions. Check those terms before making it a design dependency.

Separate “compatible with an S3-style interface” from “supported by n8n.” A service or community integration may appear to work, but that does not establish that n8n officially supports it. For a production design, record the supported storage type, license eligibility, authentication method, and recovery procedure. Do not build a retention policy around an integration whose support status is unclear.

Also treat a mode change as a configuration change, not as a file migration. Switching from one storage mode to another does not by itself prove that previously stored binary data has moved or remains readable. Before changing modes:

These checks matter when a workflow is still in use: a new execution may succeed while older execution records refer to files in the previous location.

Coordinate file cleanup with execution retention

Does deleting execution history also remove every binary file? Do not assume that a database cleanup and file cleanup are identical operations. n8n’s execution data management guidance describes execution pruning, while binary storage has its own mode-dependent behavior. Use the current documentation for the deployed version to determine how the two interact.

Set retention deliberately. If you keep successful execution data for troubleshooting, decide whether its related files also need to remain available. If you remove execution data quickly, verify that the corresponding binary data is handled as intended. Avoid manually deleting files from a binary data directory while executions may still reference them.

We recommend tracking separate measures rather than treating “n8n data size” as one number:

Estimate filesystem capacity from observed workflow output, not from a guessed universal threshold. A simple planning model is:

Estimated retained file data
= average binary data written per execution
  × executions retained
  × number of workflow paths that keep separate copies

The model is only a first pass. Measure actual directory growth during representative runs, then include temporary files, retries, and the retention window that the team has chosen. Record the measurement date and workload so that a later change in file mix does not turn the estimate into an assumed limit.

Turn the decision into a deployment plan

Before selecting a server or changing storage mode, write down the file types, workflow topology, and retention requirements. Then check the actual deployment rather than relying on defaults copied from an older Compose file.

A compact runbook should include:

For a Compose-based deployment, review how volumes are persisted and tested in our guide to accepting a self-hosted Docker Compose AI server. That guide covers broader deployment acceptance; this article’s storage checks remain specific to n8n binary data.

When estimating disk needs, use the actual mounted directory and observed growth from representative runs. Keep a separate allowance for the database if it stores binary payloads, and include backup copies in the capacity plan. Do not count a container’s temporary writable layer as durable capacity. If you change from local storage to an external option, include migration and restore testing as part of the project rather than treating it as a later maintenance task.

A server choice should follow the storage and workload plan. A shared VPS can be adequate for a light workflow with modest file retention, but it may expose the deployment to competing workloads, constrained disk choices, or unclear resource boundaries. A dedicated AMD physical server is more appropriate when the workflows need long-running exclusive resources and predictable ownership of the host. It does not provide object storage, shared volumes, or managed backups by itself; those still need to be designed and operated.

For a long-running n8n installation, compare the measured file growth and recovery requirements with the actual disk options available from mbpscloud before committing. Review how mbpscloud billing works alongside the deployment plan so the chosen rental term matches the expected operating period. If the workload is temporary or very light, a smaller shared environment may be the more proportionate choice. If independent compute and control of the server are requirements, an mbpscloud dedicated AMD server is worth evaluating after you have verified the storage mode, persistence, and backup plan.

Run Your Workloads on mbpscloud Bare Metal

Deploy your self-hosted workflows on an AMD EPYC 7543P server with 32 cores and 64 threads dedicated to you.

Configure an Mbps Dedicated Server View Mbps rental pricing

Clear paths to configuration and access

Rental pricing lists the hardware and options, while the connection guide explains SSH and RDP access after delivery.