Choosing n8n binary data storage: filesystem, database or S3

Pick n8n binary data storage based on whether you run one instance or queue mode, how much file volume you process and which object store you can operate and support. Confirm each limit against the current release notes before you commit.

On this page

Where n8n binary data storage fits in your deployment

Workflows that handle files, attachments or exports produce binary data that n8n has to keep somewhere while the workflow runs and afterward, and the storage choice shapes how queue mode behaves, how pruning removes old files and how you recover after a failure. Three options are in play. Filesystem mode keeps binary data on the disk of a single n8n instance, which is the simplest choice when one instance runs everything. Database mode stores binary data in the same database as execution records, and it is the option that works when several processes must read the same files in queue mode. S3, or an S3-compatible store such as MinIO or Garage, moves the bytes into object storage, which suits large volumes and separate retention or backup policies. Each option changes where your data lives, so it also changes what your compliance and security teams need to review.

This page explains how to choose between those three options, what changes when you switch modes after data already exists, and what the 3.0 release changed. Start by listing the file types, sizes and retention periods your workflows actually handle, and confirm your deployment topology, because a single instance and a queue mode setup with workers and webhook processors lead to different answers. Confirm the current binary data settings in the n8n documentation for your exact version before you change anything in production, since storage mode settings and their defaults are version-specific.

Treat the storage decision as a recovery decision as well. Your backup plan must cover wherever the binary data lives, whether that is the filesystem, the database or an object bucket with its own lifecycle rules. Ask your team to confirm who owns each store, how it is backed up, and whether the license terms for the chosen object store fit your use. The sibling topic on S3 and MinIO covers bucket setup and licensing in detail, so use this page to settle the architecture first.

Comparing filesystem, database and S3 binary data storage

This table compares the three places n8n can keep binary data across topology, file location, operations, pruning and backups. Read each row as a question of who runs the store and what must be restored together with the database. The main takeaway is that your mode sets your backup scope and decides whether every process can reach the files.

ModeTopology and file locationOperations and backupsConfirm with n8n docs
Filesystem, single instanceOne main process, with files on the instance's local disk.You run the disk and back up its data directory alongside the database.Whether your version and plan allow this mode, and how upgrades handle existing files.
Filesystem, queue modeMain, workers and webhook processors on separate hosts, where local files are not shared by default.You must provide shared storage you operate, or choose another mode. Back up every host that holds files.Whether your version supports filesystem mode with workers, and which hosts read and write files.
DatabaseContent stored in PostgreSQL, the same store queue mode already uses for workflow data.Your database team operates it. Backups include files, so file volume affects backup time and restore scope.Whether pruning frees database space for files, and how file volume affects your backup window.
S3-compatible object storageFiles in a bucket that every process can reach in either topology.You run the bucket and back it up with the database as one restore point, so both must stay in step.License terms for external storage on your plan, and whether a bucket lifecycle rule or n8n removes files.
MinIO community or GarageTwo self-hosted S3-compatible options that you would operate yourself.MinIO community repositories are archived. Garage does not implement bucket versioning or object lock.Whether your chosen store supports the S3 calls n8n makes, and who provides support for it.

Which binary data mode fits a single instance and queue mode

A single n8n instance runs the editor, triggers and executions in one process, so filesystem storage on that host's disk is the simplest choice. Files stay beside the instance and no extra service has to run. The trade-off is that the disk becomes part of your recovery plan, because the files, the database and the encryption key must stay in step.

  • Usual choice: local filesystem storage on the instance host, on a volume you size and monitor.
  • Shared components: one database and one encryption key, both used by the same process, so no key distribution is needed.
  • Recovery scope: restoring the database without the matching files leaves executions pointing at missing binary data, so back up both on the same schedule.
  • Growth limit: a large file estate fills the host disk and competes with the process for I/O, so watch free space and retention closely.

Check that the volume holds peak file volume plus your retention period, and that your backup job covers the binary data directory.

Decision path for choosing a binary data store

The path starts at topology: a single instance or queue mode with several processes. Next comes file volume and retention, since large or long-lived files push the choice toward external storage. The last check is whether your team can run an S3-compatible service with backups and access control. Each branch ends at filesystem, database or S3 storage. Confirm the final choice against n8n's current binary data documentation before you commit, because storage behavior changes between releases.

Decision path from instance topology to filesystem, database or S3 storage.

Choosing an S3-compatible store for large binary volumes

Once binary volumes outgrow the filesystem or database, the object store becomes a separate dependency with its own license, support model and feature set. The four options below differ mainly in who supports them and what S3 features they implement, so check n8n's support position for each before you commit.

Managed cloud object store

A managed object store from your cloud provider keeps storage operations, durability engineering and patching with the provider, while your team owns buckets, IAM roles, encryption settings and lifecycle rules. Confirm that the store's S3 API behavior matches what n8n's external binary storage setting expects, and ask whether egress and request charges will grow with workflow volume. Check whether the provider's region and data residency terms fit your compliance scope.

Ceph object gateway

Ceph provides S3-compatible object storage from the same cluster that may serve block and file workloads, and it is covered in its own pillar. It suits organizations that already run Ceph for infrastructure storage. Plan failure domains, replication and upgrades as part of the storage platform, and verify with n8n's support documentation whether your Ceph-based endpoint is a supported target for binary data.

MinIO community server

MinIO's community repositories are archived and read-only, and the community server is released under the GNU AGPL v3.0. The README says commercial or proprietary use must be validated against AGPLv3 obligations, and that community support is best effort through GitHub and Slack, with SLA-backed support only through its commercial product. Ask legal whether your use triggers AGPL obligations, and confirm n8n's support position before relying on it.

Garage object store

Garage is an S3-compatible store licensed under AGPL-3.0, built to run across several sites on ordinary internet links. It does not implement bucket versioning, object lock, bucket policies, ACLs, server-side encryption configuration or replication, and its lifecycle rules cover only aborting incomplete multipart uploads and expiration. Test the exact operations n8n performs against your build, and confirm n8n's support position for Garage before you choose it.

Existing enterprise object store

If your organization already runs a commercial object store under a support contract, reusing it keeps operations, backup and access reviews in processes you already have. Ask the vendor for its S3 compatibility statement, check that bucket lifecycle rules can express the pruning you plan, and confirm that the access model supports a dedicated bucket and credentials for n8n. Verify n8n's support position for that product before you choose it.

What the archived MinIO community repositories mean for your plan

If you plan to use MinIO as the S3 target for n8n binary data, the first thing to know is that the minio/minio, minio/operator and minio/mc repositories are archived and read-only on GitHub. The README says the repository is no longer maintained and points to AIStor Free and AIStor Enterprise as alternatives. It also says the community edition is now distributed as source code only, with no further pre-compiled binaries, and that legacy binaries will not receive updates. The last tagged community release is RELEASE.2025-10-15T17-29-55Z, published on October 16, 2025. Treat that as the last upstream build you can expect from the community line, and confirm the current state of the repositories yourself before you commit to a design.

For n8n, this changes three things. Patching becomes your job: if a security fix lands after the last tag, you will need to build from source, test it, and redeploy on your own schedule. Supply chain checks become stricter, because you will be building an artifact you cannot download as a signed binary from the project and must verify the source, the build toolchain (Go 1.24 or later for source installs) and any Docker image you create from the provided Dockerfile. Support also changes: the README says community support is best effort through GitHub and Slack, and SLA-backed support is available only through AIStor. Ask the vendor what support and patch commitments come with each option before you choose.

Licensing needs its own review. The community server is released under the GNU AGPL v3.0, and the README says any commercial or proprietary use must be validated against AGPLv3 obligations, with commercial licensing available through AIStor. Whether running an internal, unmodified server meets your obligations, or whether modifications or network-facing use trigger source disclosure, is a question for your legal counsel, not for this page. Ask counsel to review the AGPLv3 terms against your exact use, and ask the vendor to confirm the commercial licensing position in writing. If the answers do not fit your plan, compare an alternative S3-compatible store before you build the n8n integration.

Setting up the chosen binary data storage and verifying it

This sequence puts the storage choice from the topic into your environment. It confirms the topology, sets the binary data mode, provisions the store, and uses test files to show that every main, worker and webhook process reads and writes the same data and that pruning removes what it should.

  1. Confirm topology and binary data mode

    Record whether you run a single instance or queue mode with a main instance, workers and webhook processors. Filesystem storage fits one instance, while queue mode needs binary data in a location every process can reach, such as the database option or an S3-compatible store. Confirm your n8n version and the exact binary data variable name in the n8n documentation for that version. Done when the platform owner signs off a one-page record of topology, version and chosen storage.

  2. Set binary data mode in configuration

    Set the binary data mode in the environment or configuration file, using the variable name you confirmed for your version. Add any storage connection settings for S3 or the database option in the same place. Queue mode also requires the same encryption key on every process, so check that value before restarting. Restart each process after the change. Check that every process starts without configuration errors and that the effective settings match the record from the first step.

  3. Provision the store and access keys

    For filesystem mode, create a directory on a volume with enough free space and set ownership so the n8n process can write to it. For S3, create a dedicated bucket and a credential limited to that bucket. Confirm the licence and support position of any S3-compatible product before you choose it. The MinIO community repositories are archived, so check the current supported path first. Garage supports only a subset of S3 features, so confirm that its permission model and lifecycle rules meet your pruning needs. Check that a test upload succeeds with the new credential and fails against another bucket.

  4. Test large file writes and reads

    Build a test workflow on the main instance with a manual trigger that generates or downloads a large file. The size is yours to choose, for example a file large enough to strain memory in your current setup (illustrative). Pass the file through a node that transforms binary data, then save the output. Check that the execution completes, that the file appears in the filesystem path or bucket you configured, and that the output file matches the input checksum when you download it.

  5. Verify workers and webhook processors

    Run the test workflow so that a worker picks up the execution and reads the file that the main instance wrote. Then send a file to a webhook path served by a webhook processor and confirm that the file is stored and readable from the execution view. Watch the logs for access denied or file not found errors. Those errors usually mean a process uses a different path, bucket or credential. Done when every process can read and write the same store without errors.

  6. Confirm pruning removes files

    In a test environment, set a short retention window using your execution pruning settings, run a few executions that produce binary files, and wait for them to age out. Compare the store contents with the execution list. Files for pruned executions should be gone, and files for retained executions should remain. If files persist, check whether n8n pruning or a bucket lifecycle rule is responsible, and confirm the behavior in the n8n documentation for your version before you rely on it in production.

  7. Record the setup and retest upgrades

    Store the configuration without secrets in version control, and document the bucket policy, the owner of each access key and the rotation schedule. Repeat the write, read and pruning checks after every n8n upgrade and after any storage change. Before switching modes, check how existing binary files will be handled, because pruning behavior can differ between modes. Done when the written record matches the running configuration and the retest passes on the new version.

Securing binary data: access, encryption, retention and shared keys

Binary data often holds the most sensitive content a workflow touches, such as invoices, scans and exports. The controls below decide who can reach those files, how they are protected at rest, how long they persist, and how they are recovered, and each one must be checked in the store you choose as well as in n8n.

Least-privilege access keys

Give n8n its own access key for the bucket or path it uses, and grant only the read and write actions it needs. Keep administrative keys out of the n8n configuration. Garage uses its own per-access-key, per-bucket permission system, so an n8n key there should be limited to one bucket. In any other store, confirm the equivalent IAM or policy model, and test that the key cannot list or read unrelated buckets.

Garage S3 compatibility

Server-side encryption support

Find out whether the store encrypts objects at rest and who manages the keys. Garage supports SSE-C, where the client supplies the key with each request, but it does not offer a server-side encryption configuration. Confirm with your store vendor whether it supports SSE-S3 or KMS-managed keys, how key rotation works, and whether encryption is enforced by default or must be set per bucket.

Retention and pruning

Binary files should not outlive the executions that need them. Set n8n's pruning so execution records and their files expire on the same schedule, and confirm that the store removes objects when n8n deletes its references. Garage lifecycle rules support only expiration and aborting incomplete multipart uploads, so a retention rule for binary objects may need to live in your own cleanup job. Test the cleanup before relying on it.

Backup of files and database together

In database mode, the database holds references to binary records, and in S3 mode the bucket holds the files those references point to. A backup of one without the other restores broken links. Schedule backups of the database and the bucket from the same point in time, and include a restore test that opens a workflow which reads a stored file. Ask your store vendor how consistent snapshots are taken.

Network paths to the store

Every n8n main, worker and webhook processor that reads or writes binary data needs a network route to the store. Keep the store on a private network segment, restrict which hosts may connect, and use TLS on those connections. Garage documents latency and bandwidth requirements between nodes, which matter when the store spans sites. Map each process to its path before go-live so no component is left without access or exposed to the internet.

Shared encryption key in queue mode

In queue mode, the main instance's encryption key must be shared with every worker and webhook processor so they can decrypt credentials stored in the database. Binary data does not depend on that key, but the key is still a single secret that grants access to credentials. Store it in a secrets manager, restrict who can read it, and rotate it under a documented process. Losing or mismatching the key breaks every process that cannot decrypt.

n8n queue mode docs

Questions teams ask before choosing binary data storage

What drives the cost and effort of choosing and setting up binary data storage?

Topology, the number of processes that touch files, expected file volume and the object store you choose drive most of the effort. A single instance in filesystem mode is a small change. Queue mode with workers and webhook processors means every process that handles binary data needs the same storage access, so configuration and testing multiply with the process count. Volume sets capacity, backup scope and how much pruning you must design. An S3-compatible store adds bucket setup, access policies and lifecycle rules, and the store you pick changes the work because open-source options differ in license, maintenance status and feature coverage. Review and testing add effort too: you need to show that files survive restarts, that pruning removes only what it should and that workflows still run at peak load. Ask for a written scope that lists each of these items.

Which costs are one-time and which recur after go-live?

One-time work covers design, initial configuration, the first test cycle and any migration of existing files. Recurring costs continue for as long as the instance runs:

  • Storage capacity, which grows with file volume and retention settings
  • Backups of files and of the database that references them, with restore tests
  • Patching of n8n and of the object store, including reading each release's notes
  • Support, whether that is internal staff time or a support or retainer agreement

Object stores carry their own risk here. The upstream README for MinIO's community code says the repositories are no longer maintained and points to paid AIStor editions for supported releases, so self-maintained patching would fall on your team. Confirm the maintenance status of any store before you commit. Ask the quote to split one-time and recurring items and to name the owner of each item after handover.

How long does a binary data storage change take?

No duration has been supplied for this work, so no figure is given here. Length depends on scope. A single filesystem-mode instance with a small test plan is a different job from a queue-mode deployment with several workers, an S3-compatible store and a migration of existing files. Ask for a written scope that lists the phases, the environments involved, the testing and the handover, and a timeline tied to those items. Also ask what the timeline assumes about your access, change windows and approvals, since waiting on those often moves dates more than the technical work does. DeployOpen usually works on fixed-scope engagements, with scope, deliverables and timelines agreed in writing before work starts, so the written scope is the document to compare across options.

What must we provide before a partner can scope binary data storage work?

Start with your topology: whether you run one instance or queue mode, how many workers and webhook processors exist and where each one runs. Next, give volume estimates: typical and peak file sizes, the number of files per day and how long files must be kept. Name the store you intend to use, or the options you are weighing, and any rules on where data may be stored. Provide access to a non-production environment that closely matches production, read access to current configuration and a named owner who can approve changes. Share your backup and retention rules, plus any compliance requirements that apply to stored files. Rough volume numbers are still useful when they are uncertain, as long as you label them as estimates, because without them the sizing of storage and pruning remains guesswork.

Can our own team set up binary data storage without a partner?

Often yes, if your team has Linux, container and PostgreSQL administration skills and time to test properly. Filesystem mode on one instance is the smaller job. Queue mode, S3-compatible storage and migration of existing files add more places to go wrong, and each needs a test you can repeat. Check three things honestly: whether someone can own the object store through patches and backups, whether anyone on the team has run n8n queue mode before and whether you can run a restore test end to end. A partner is most useful for a fixed-scope design, build and handover, or for a review of a design your team has drafted. DeployOpen implements, hardens, backs up and documents self-hosted platforms inside your own infrastructure, and ownership of the running system stays with your team after handover.

Can we switch binary data storage modes later, and what happens to existing files?

Switching is possible, but the facts available for this topic do not describe how n8n moves existing binary files between modes, so confirm the exact steps in n8n's release notes and documentation for your version before you plan a switch. Check three things first: where existing files live, whether the old location stays readable during the change and what pruning does to files stored under the old mode. Pruning can remove execution data on a schedule, so start a mode change only after you know which files are still referenced. Workers and webhook processors also need matching access to the new store, which makes the switch a coordinated change that updates every process together. Test the switch on a copy of production with a restore point, and keep the old store until you have verified workflows that reference older files. Read the n8n release notes for any changes that affect binary data in the version you run, including the 3.0 changes.

Limits to confirm for Garage, MinIO and n8n before go-live

Each object store and n8n mode carries limits that change what you can safely run. Confirm these gaps against the current docs, release notes and your own tests before you commit a bucket layout, a retention rule or an upgrade date.

Garage feature gaps

Garage does not implement bucket versioning, object lock, bucket policies, ACLs, server-side encryption configuration, replication, event notifications or tagging. It uses its own per-access-key, per-bucket permission system instead. If your n8n binary data needs legal hold, bucket-level policy, or event-driven processing, Garage will not cover those needs. Confirm each one against the S3 compatibility page for the exact Garage version you plan to run.

Garage S3 compatibility

Garage lifecycle rule limits

Garage lifecycle rules support only AbortIncompleteMultipartUpload and Expiration. Pruning old binary files from n8n through a bucket rule is possible only within those two actions, so any tiering, transition or versioned cleanup must happen elsewhere. Test that an Expiration rule removes the objects n8n expects to be removed, and confirm that n8n's own pruning settings are not left to do the same work twice.

Garage replication and node count

Garage stores each data chunk in three zones and its deployment guide recommends at least three nodes for three-way replication, with copies placed in different locations. A two-node or single-node Garage setup therefore does not match that layout. Plan node count and site placement before you size n8n, and confirm the replication behavior on the version you deploy.

Garage cluster deployment

Garage metadata engine risks

LMDB is the default and fastest metadata engine in Garage, but its files are not portable across CPU architectures and corruption has been reported after unclean shutdowns. SQLite is offered as a more robust alternative. Choose the engine before loading data, confirm that you will not move metadata between architectures, and test recovery after a forced power loss on the hardware you plan to use.

MinIO is archived

The minio/minio, minio/operator and minio/mc repositories are archived and read-only. The README says the community repository is no longer maintained, that the community edition ships as source only with no further pre-compiled binaries, and that legacy binaries will not receive updates. Its last tagged community release is RELEASE.2025-10-15T17-29-55Z. Before choosing MinIO, confirm which edition your organization will rely on, who patches it, and whether the AGPLv3 obligations fit your use.

MinIO README

n8n binary limits by mode and version

n8n's binary data behavior differs between filesystem mode on one instance, database mode in queue mode, and external S3 storage. Queue mode requires all workers and webhook processors to reach the same storage location, so a local filesystem setting will not work across nodes. Confirm the binary data mode options, the pruning behavior when you switch modes, and every change listed for the 3.0 line in the n8n release notes before you schedule an upgrade.

n8n release notes

How DeployOpen scopes and delivers n8n binary data storage

DeployOpen approaches binary data storage for n8n as a scoped infrastructure decision, not a default setting. We start from how your workflows handle files, which queue mode and storage mode you run, and what your retention and access rules require. The written scope then defines the storage backend, the configuration and the evidence you receive.

How we scope

  • Inventory which workflows read, write or pass files, and their typical and largest file sizes.
  • Confirm whether the instance runs in single-instance or queue mode, since that drives the storage choice.
  • Record retention rules for binary files, including how long processed files must remain available.
  • Agree the written scope, deliverables and timeline before any configuration work starts.

How we build

  • Configure the chosen backend, filesystem, database or S3, on infrastructure you control.
  • Set the binary data mode, storage paths or bucket settings, and access credentials in a reviewed change.
  • Test that files written by main, worker and webhook processes can be read back by every process that needs them.
  • Verify pruning behavior in a staging copy before any change reaches production data.

How we hand over

  • Document the chosen storage mode, the reasons for it and the configuration keys used.
  • Provide runbooks for storage capacity checks, bucket lifecycle rules and what to do if a mode change is planned.
  • Deliver test results showing read, write and pruning checks, with any open items listed by owner.
  • Walk your platform and security teams through the configuration so they can review it independently.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Plan a review of binary storage settings before each n8n major version upgrade.
  • Confirm with your team which n8n version and storage backend your support covers before signing a retainer.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.