Moving an existing Plane install to external PostgreSQL and S3

A running self-hosted Plane can be moved off its bundled PostgreSQL and MinIO containers in a planned maintenance window. This page covers the steps, the decisions behind them, and what to verify before users return.

On this page

Why teams move Plane to external PostgreSQL and S3

Teams move Plane to external PostgreSQL and S3 because the bundled data services were chosen for getting started, not for running a production tracker. Plane's own migration guide describes the default local PostgreSQL and MinIO containers as convenient for a first install but not recommended for production. The move itself needs a maintenance window with Plane offline, so the decision is not only technical. Someone has to agree on when users lose access, who approves the window, and how long the team can work from email or a spreadsheet in the meantime.

The practical reasons usually come down to ownership of the data. A database inside a compose stack is backed up, patched, monitored and restored by whoever maintains that stack, often without a tested recovery path. Uploaded attachments and page assets sit in a local MinIO bucket that shares the host's disk and lifecycle with everything else. Moving both to services your organization already operates lets your database and storage teams apply their existing backup, retention, encryption, patching and access controls, and gives auditors one system to review rather than a container nobody documented. Before scheduling anything, confirm which PostgreSQL major version your managed service offers and whether it matches the version currently running in the Plane database container, because the guide's restore steps assume a matching version.

Start by inventorying what the instance holds: the database, the object store, and any configuration that points at the local containers. Confirm the target bucket and database exist and that the Plane host can reach them before you stop anything, since a failed connection discovered after the window opens extends the outage. Agree on a rollback point, such as keeping the original containers and volumes intact until verification passes. Ask your managed service provider to confirm backup and point-in-time recovery settings for the new instance, because the migrated data will be your only copy once the old containers are retired.

How the data moves from bundled containers to external services

The export starts in the running Plane stack, where pg_dump -Fc reads from the bundled PostgreSQL container while Plane is offline. The dump is restored into the external PostgreSQL service with pg_restore --no-owner --no-privileges, and uploads are copied from the bundled MinIO store into the S3 bucket. Plane should reopen only after the verification gate confirms that the database and the stored files both match the source.

Data flow from bundled containers to external services during the maintenance window.

Choosing the target PostgreSQL and object storage

This table compares the realistic target options for the database and the object store, with the trade-offs and what your team must confirm before the maintenance window. Read each block as a decision: pick the database option and the storage option separately, then check the version and access-model items against your own environment.

OptionWhen it fitsTrade-offWhat to confirm
Managed PostgreSQL serviceYour cloud team already runs managed databases and wants backups, patching and failover handled by the providerLess control over server settings and extensions, and provider-specific connection and network rulesMajor version offered matches the source container, network path from Plane hosts, and TLS and credential handling
Self-managed PostgreSQL with high availabilityYou need replicas, synchronous or asynchronous standbys and control over the database host inside your networkYour team owns failover tooling, backups and upgrades, because PostgreSQL does not detect primary failure on its ownFailover method, point-in-time recovery tests, and who is on call for the database
Single external PostgreSQL instanceA small team wants a dedicated database host outside the Plane server with the lowest setup effortNo standby, so a host failure stops Plane until the database is restoredBackup schedule, restore test timing, and disk headroom for the dump and the live data
Managed S3 bucketYour cloud account already hosts Plane's network and identity, and you want durable object storage without running storage serversAccess is granted through IAM policies, and bucket CORS must allow the presigned upload originBucket region, IAM permissions for the Plane service identity, CORS rules, and encryption settings
S3-compatible serviceYour organization runs an S3 API service from an existing storage platform in the same data centerCompatibility varies by product, so presigned URLs and multipart uploads need testingAPI endpoint and path style support, certificate trust, and that presigned uploads work from the browser
Self-hosted MinIO outside the Plane hostYou want object storage on separate hardware under your control and the team can operate itAnother stateful system to back up, patch and monitor, with its own disks and access keysErasure coding layout, backup of the bucket, and the access key scope used by Plane
PostgreSQL major versionTarget version should match the version used to dump the data for the restore stepMismatched versions can make the restore fail or behave differentlyMajor version of the running container and the target, and whether the target is in the supported list

Migrating Plane to external services step by step

The sequence moves a running Plane database and uploads off the bundled containers and onto managed PostgreSQL and S3-compatible storage, and ends with a verified instance open to users again.

  1. Plan the window and take a backup

    Agree the maintenance window with the users who depend on Plane, because the vendor guide says Plane must be offline for the move. Confirm the current Plane version, the PostgreSQL major version in the running container, and the MinIO bucket name and size. Take a full copy of the Plane data directory and the existing upload bucket before anything else changes, and store it somewhere the migration does not touch. Done when you can name the backup location and a person who will restore from it if needed.

  2. Provision external PostgreSQL on a matching version

    Create the managed PostgreSQL instance in your own cloud account or data center, using the same major version as the container you are leaving. The vendor guide says restores work best on a matching version. Confirm with the provider that the instance is reachable from the Plane hosts, that the database user can create and drop objects in the public schema, and that backups are enabled on the new service. Done when a test connection from a Plane host succeeds with the planned credentials.

  3. Export the database with pg_dump

    Run pg_dump with the custom format flag (-Fc) against the running database container, writing the output to a file outside the container. Keep the exact command and the file's checksum in your change record. Plane's documented steps use this export as the source for the restore, so an incomplete file will carry its gap into the new database. Done when the dump file exists, is non-empty, and its checksum is recorded.

  4. Stop Plane and clear the target schema

    Stop all Plane services so no writes happen during the restore. Confirm the containers are down and that no writes can reach the old database, then connect to the new PostgreSQL instance and clear the public schema, as the guide requires before restoring. This is the point after which the old containers are no longer the source of truth, so keep them stopped rather than removing them. Done when the services are confirmed stopped and the target schema is empty.

  5. Restore the dump with pg_restore

    Run pg_restore with --no-owner and --no-privileges against the new database, so object ownership and grants follow the new service's roles rather than the old container's. Read the restore output for errors and compare table and row counts with the source for key Plane tables. Investigate any error before continuing. Done when the restore completes without unexplained errors and the counts match the source.

  6. Copy uploads to the new bucket

    Create the target S3-compatible bucket and the IAM or access credentials Plane will use, following the bucket permissions and CORS settings in Plane's documentation for external storage. Copy every object from the MinIO bucket to the new bucket with a tool that verifies object counts and sizes. Spot-check several attachments by downloading them through the new bucket path. Done when object counts and total size match the source and sample files open correctly.

  7. Point Plane at the new services and restart

    Update Plane's configuration so the database connection and storage endpoint, bucket name and credentials point to the external services, and remove the references to the bundled containers. Confirm the values are stored securely and not left in plain text where other users can read them. Start Plane and watch the logs for connection or authentication errors. Done when all services report healthy and the logs show no failed connections to the database or storage.

  8. Verify before reopening to users

    Before announcing that Plane is back, sign in with an administrator account and open a project with existing work items, comments, and attachments. Create a test work item and upload a small file to confirm writes reach the new database and bucket. Check that the upload is retrievable after a restart. Keep the old containers and MinIO data until these checks pass and your backup retention plan is confirmed. Done when the checks are recorded and users are told the window is closed.

What the pg_dump and pg_restore flags do and why they matter

The export and restore steps in Plane's guide rely on a few flags that decide whether the data lands cleanly on the new server. The export runs pg_dump -Fc against the database in the running container. The -Fc flag writes PostgreSQL's custom archive format rather than plain SQL. That archive is compressed and can be restored selectively, and pg_restore reads it directly, so you do not hand-edit a SQL file to move the data. Confirm the exact export command for your Plane version in the Plane migration guide before you run it, because the container name and database user are set by your install.

The restore uses pg_restore --no-owner --no-privileges into a cleared public schema. Those two flags exist because the old and new servers rarely share the same roles and grants. Without --no-owner, objects would try to belong to a role that may not exist on the managed service, and the restore would fail or leave objects owned by a role your application does not use. Without --no-privileges, the original grant statements would be replayed against roles with different names or permissions. Dropping both lets the new database's own role own the objects and receive the access your Plane connection string needs. Clearing public before the restore avoids collisions with objects the new server may already contain.

Matching PostgreSQL major versions reduce restore problems, and the guide asks for that match where possible. A dump taken from one major version and restored into another can hit syntax or catalog differences, and a managed service may offer a version your current container does not run. Before the maintenance window, compare the major version of the running container with the version you will provision, and check which versions are still supported in the PostgreSQL versioning policy. If the versions differ, plan a test restore on a scratch database first and confirm the row counts and key tables match the source.

Copying uploads to the new bucket without losing attachments

Attachments and uploaded files live in object storage, not in the database dump, so they need their own copy and their own checks. The cards below follow the order in which the copy should happen: identify the source, move the objects, grant access, enable browser uploads, test a download, and only then retire the old bucket.

Identify the MinIO bucket names

Before copying anything, list the buckets your running MinIO container holds and record which one Plane writes to. Check the bucket name in your Plane environment file and confirm it against the object listing, since an install can carry more than one bucket. Write the names down in the change record so the copy, the permissions and the verification all refer to the same source.

Copy objects with a sync tool

Use a sync tool that speaks the S3 API on both ends, such as the MinIO client or rclone, to copy every object from the old bucket to the new one. Run the copy during the maintenance window while Plane is offline so no new uploads land mid-copy. Compare object counts and total size between the two buckets after the run, and rerun the sync if they differ.

Grant the Plane identity access

The identity Plane uses to reach the bucket needs read and write access to the new bucket, plus list permissions so it can locate objects. Scope the policy to the one bucket rather than granting account-wide access. Confirm the required actions in the Plane storage documentation for your release, because the set Plane calls can change between versions.

Migration guide

Configure CORS for presigned uploads

Browsers upload attachments directly to the bucket through presigned URLs, so the bucket must accept cross-origin requests from your Plane domain. Set the allowed origin to the exact public address, allow the methods Plane uses, and expose the ETag header. A missing rule usually shows up as uploads that fail in the browser while downloads still work.

Test a download of an old attachment

Pick several attachments created before the move, including large files and ones on older work items, and open them through the Plane interface. Confirm that each one downloads with the correct file name and size. Also upload one new attachment and download it back, which proves the write path works as well as the read path.

Keep the old bucket until verification passes

Leave the MinIO bucket and its data in place after Plane reopens. Do not delete the old volume until your checks have covered attachments, new uploads and restored data for a period your team has agreed on in advance. Record the retention date for the old volume in your runbook so the cleanup is a planned step, not an accident.

How to verify the instance before reopening it to users

Start with the data itself. Before you export, record row counts for the tables that matter most to your team, such as workspaces, projects, work items, cycles, modules and users, and keep that output with the migration notes. After the pg_restore run completes against the external PostgreSQL instance, run the same counts against the new database and compare them. Any difference is a stop condition until you understand it. Counts alone do not prove the content is intact, so also sign in with a known account, open a sample of projects, and open a sample of work items with their comments, states and relations.

  • Row counts on key tables: Match counts to the numbers captured from the source database before the export, and investigate any mismatch before continuing.
  • Login as a known user: Confirm that an existing account with a known role can authenticate and sees the workspaces it should.
  • Project and work item samples: Open projects from several teams and a set of work items with descriptions, comments and cycle or module assignments.
  • Schema and ownership: Confirm the restored objects sit in the expected schema and that the application role can read and write them, since the restore used --no-owner and --no-privileges.
  • Version match: Note the PostgreSQL server version used for the source and target so the record shows whether the restore ran on a matching version.

What to check: every count matches the pre-export record, and the sampled records open with their history intact.

Security and access controls during the move

The migration window puts a full copy of your Plane database and uploads in motion, often through a laptop, a jump host or a temporary bucket. The cards below cover the controls that keep that copy protected, the credentials that touch it, and the record of who had access while Plane was offline.

Protect the dump file

The pg_dump -Fc output contains every work item, comment and user record in the instance. Store it on encrypted volumes or in an encrypted bucket with restricted access, and never leave it in a shared temporary directory. Plan the deletion step before the window opens: remove the dump from every host and bucket once the restore is verified and a rollback point is no longer needed. Confirm where your backup tooling copies the file.

Plane migration guide

Least-privilege database and bucket credentials

Create a dedicated PostgreSQL role for Plane that owns only the Plane database, and a bucket user whose policy covers only Plane's bucket. Avoid the superuser and the account administrator used to build the managed service. Confirm with your cloud or database team which permissions the bucket policy needs for uploads and presigned URLs, and store these credentials in your secrets manager instead of plain Helm values or .env files.

Encrypt connections to PostgreSQL

Traffic between Plane and the managed database, and between the restore host and the database, should use TLS. Ask your database provider which certificate chain it presents, then set the TLS mode in the connection string so Plane verifies the server instead of accepting any certificate. Restores run from a host outside Plane's network path will need the same setting, so test the connection string before the window.

Use SCRAM password authentication

PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM. Set password_encryption to scram-sha-256 on the new server and confirm that the Plane role's password was stored with SCRAM before cutover. Check pg_hba.conf so that the Plane network range is allowed only through the SCRAM method. If your current instance uses an older role password, recreate it so the stored hash uses SCRAM.

PostgreSQL auth methods

Audit access during the window

Record who could reach the database container, the MinIO console and the host shell during the offline window, and who ran the export and restore commands. Keep shell history, change tickets and bucket access logs with the migration record. Ask your security team to confirm which of those logs are retained, and for how long, so the migration can be reviewed later as evidence.

Questions teams ask before moving Plane off bundled containers

How long does the maintenance window take to move Plane to external PostgreSQL and S3?

The window length depends mainly on three things: the size of the PostgreSQL database that must be dumped and restored, the volume of uploaded files that must be copied to the new bucket, and how much verification you run before reopening. Plane's guide says the move needs a maintenance window with Plane offline, but it does not publish a duration, so ask your team to time a dump and restore against a copy of production data before you set the window. Upload copying often takes longer than expected when the bucket holds many small files, so measure that as well. Your change record should state the window start, the rollback trigger and the time you will decide to reopen.

Can our own team move Plane to external PostgreSQL and S3 without a partner?

Yes, if your team has administrators who can run pg_dump and pg_restore, manage the target database and bucket, and handle the Plane container configuration. The work is sequential and easy to get wrong in small ways, such as a version mismatch between the source and target PostgreSQL, a missing schema reset, or uploads that point to the wrong bucket. Before you decide, check whether the people who will run the cutover have done a restore test in a non-production environment, and whether someone can own the rollback decision during the window. A partner is more useful when the team lacks that experience or cannot staff the window.

What does a DeployOpen engagement cover for this migration?

A DeployOpen engagement for this migration is planned as a fixed-scope piece of work, with scope, deliverables and timeline agreed in writing before any change begins. In general terms, the work can cover reviewing the current install, planning the maintenance window, preparing the target PostgreSQL and S3 resources, running the export and restore, copying uploads, verifying the instance before reopening, and documenting the result for your operations team. The exact activities depend on your environment and are set out in the written scope. Pricing follows from that scope, so ask for a written quote that lists each activity, who performs it and what you must provide.

What must our team provide before a migration can start?

Your team must provide access to the Plane host and its containers, credentials and network paths to the managed PostgreSQL service and the S3-compatible bucket, and a change window approved by the business owners who depend on Plane. You also need a named decision-maker who can sign off the verification results and the decision to reopen the instance. Confirm which IAM roles, database users and bucket policies your security team must create, and confirm who approves changes to production. Ask for a list of these inputs in the written scope so that delays do not come from missing access on the day.

Should we upgrade PostgreSQL to a new major version during the same move?

In most cases, keep the move and the major upgrade separate unless you have tested both together. Plane's guide recommends restoring onto a matching PostgreSQL version, so combining a version change with the export and restore adds a second failure mode inside the same window. PostgreSQL supports each major version for a fixed period, so check the support end date for your current version against the versions listed in the PostgreSQL versioning policy and plan the upgrade as its own change if needed. If you do combine them, confirm with Plane which PostgreSQL versions your release supports and test the full path on a copy of production data first.

How do we roll back if the restore or verification fails?

Plan the rollback before the window opens, because the local PostgreSQL and MinIO containers remain the fallback only if you keep them intact and their data untouched. Keep a full dump of the source database and a copy of the upload files, and define the trigger that sends you back to the original configuration, such as failed login tests or missing attachments. Write down how to point Plane's configuration back to the local containers and how long that takes in a rehearsal. Do not delete the original data until the instance has run normally for a period your business agreed in advance.

What should we verify before reopening Plane to users?

Verify the data and the file path, not only that the containers start. Check that projects, work items, cycles, modules and pages open with the expected content, that user accounts and workspace memberships match the source, and that attachments download from the new bucket. Test uploads and presigned download links from a normal user session, because bucket permissions and CORS settings often fail there first. Ask your engineers to record each check and its result so the sign-off reflects what was tested, and confirm the exact list with Plane's documentation for your version.

Limits to confirm in your environment before you start

The migration depends on details that differ between installs: the Plane version, the edition and deployment layout, the size of your uploads, and the network and failover choices around the new services. Confirm each one before you pick a maintenance window, because most of them change the steps or the timing.

Plane version and supported datastore versions

Confirm the Plane version you run and the PostgreSQL major version it expects. The export and restore must use matching PostgreSQL versions where possible, so check the major version of the running container against the managed service you plan to use. PostgreSQL 14 is supported until November 12, 2026, so a target on an older major version may need a plan for upgrading soon after the move. Confirm the target major version with your managed service provider before the window.

Plane migration guide

Edition and deployment layout

Confirm whether your install uses the Docker Compose layout managed by the Prime CLI or a Helm chart, and which edition it runs. The paths to the environment file, the compose services and the database container name change between layouts, so the export command in the guide must match your install. Write down the exact container names and volume locations before you copy any command into a change ticket.

Upload count and total size

Count the uploaded files and their total size in the current MinIO bucket before you schedule the window. Copy time depends on object count as much as on bytes, because many small files take longer than a few large ones. Use the count and size to set the window length, and test the copy on a staging copy of the bucket if the instance holds a large volume of attachments.

Network paths to the new services

Confirm that Plane's API, worker and migration containers can reach the new PostgreSQL endpoint and S3 endpoint on the ports they use. Check security group or firewall rules, DNS names, TLS settings and any private endpoints. Run a connection test from the same host or pod that runs Plane, not from your workstation, because the results can differ.

Rollback path

Decide before the window how you return to the local containers if verification fails. Keep the original containers and volumes intact until the new setup has passed checks, and keep the pg_dump file and a copy of the MinIO bucket. Confirm who can make the rollback call and how long the team will wait before deciding.

Failover needs for PostgreSQL

If high availability is in scope, confirm the failover design before you cut over. PostgreSQL supports hot standby servers and synchronous or asynchronous replication, but it does not detect a failed primary or promote a standby by itself. Automatic failover needs external tools, and your managed service may or may not provide it, so ask the provider which failover behavior it offers and who is responsible for each part.

PostgreSQL failover docs

Which PostgreSQL version to target and how long it is supported

The first decision is which major version of PostgreSQL the new managed database will run. The safest starting point is the version your current plane-db container runs, because a dump from one major version restores most predictably into the same major version. Check the running version before the maintenance window, and make the target match it unless you have a reason to change. Plan the version choice before you order the managed instance, since many providers offer a fixed set of major versions. The supported releases are 18 (final release November 14, 2030), 17 (supported to November 8, 2029), 16 (to November 9, 2028), 15 (to November 11, 2027) and 14 (to November 12, 2026). Treat 14 as a version with a near-term end of support, and do not choose it for a new database that will run for years.

If you choose a newer major version than the source, you are taking on a planned upgrade in addition to the Plane migration. The dump and restore route in the Plane guide, described in the Plane migration guide, works across major versions, but you should test it in a staging copy first and confirm that the Plane release you run supports the target version. Set the version expectations with your database owner in writing, including who owns the later upgrade and when it is scheduled.

Minor releases are a different matter. PostgreSQL minor releases never change the internal storage format, so moving between minor versions only requires replacing executables and restarting. Keep the managed instance on a current minor release for its major version, and confirm with your provider how minor patches are applied and whether they require a restart. Ask your provider for the exact version string they will run, and record it alongside the Plane version in your change record.

How DeployOpen scopes and delivers this migration

DeployOpen plans the move of a running Plane instance off its bundled PostgreSQL and MinIO containers as a written, fixed-scope engagement inside your own infrastructure. The work covers the maintenance window, the database and upload copies, and the checks that confirm Plane is healthy before users return.

How we scope

  • Inventory the current Plane version, edition, database version, upload volume and reverse proxy before agreeing scope.
  • Confirm the target managed PostgreSQL major version and the S3-compatible bucket, including IAM permissions and CORS settings.
  • Agree the maintenance window, rollback point and sign-off owners in writing before any work starts.

How we build

  • Rehearse the dump and restore on a copy of the instance so the cutover steps are proven before production.
  • Copy existing uploads into the new bucket and compare object counts and sizes against the source.
  • Update connection settings, run Plane against the external services and test sign-in, projects, cycles and attachments.

How we hand over

  • Deliver a runbook with exact commands, configuration changes, timings observed in rehearsal and rollback steps.
  • Document the verification checklist used before reopening, with the results recorded for your change records.
  • Walk your platform and database team through backup schedules, credentials and the ownership of each managed service.

How we support

  • Offer post-cutover monitoring over an agreed period, with fixes to issues found in the migration itself.
  • Available as a retainer for ongoing Plane upgrades, database minor updates and continuous testing after the move.
  • Ask any provider for their backup, restore test and support terms in writing before the scope is signed.

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.