Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk8 min

How to Back Up and Restore a Coolify Instance Safely

A Coolify instance dump restores control-plane data—not application databases or volumes. Follow the backup, APP_KEY protection, restore, migration, verification, and workload-backup steps in this guide.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A Coolify instance backup is a dump of Coolify’s control-plane database. It preserves projects, resources, settings, saved credentials, and deployment history, but it does not include application files, workload database contents, Docker volumes, or external storage. A reliable recovery plan therefore has two parts: create and protect the Coolify database dump, and back up every workload separately.

Save the complete APP_KEY=... line from /data/coolify/source/.env outside the server. The dump does not contain this encryption key; without the matching key, restored secrets cannot be read. To move an instance to another server, you also need the dump, the matching key, SSH access, and—when possible—the Coolify version that created the backup.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What a Coolify instance backup contains

Coolify’s instance backup protects the database used by the control plane. That database is what lets the dashboard reconstruct your management environment after a failure.

Data Included in the instance dump? What to do
Projects and resources Yes Restored with the Coolify database.
Instance settings Yes Restored with the Coolify database.
Saved credentials and other encrypted values Database records are included, but they require the original APP_KEY to decrypt Store the complete key separately.
Deployment history Yes Restored with the Coolify database.
Application source files and build artifacts No Protect them through your source-control, artifact, or server backup process.
Workload PostgreSQL, MySQL, MariaDB, MongoDB, ClickHouse, or SQLite data No Use an engine-aware database backup.
Docker volumes and directory mounts No Use a storage backup and test restoring it.
External storage attached to applications No Back up the external system independently.
SSH key files used by the installation Not guaranteed by the database dump Preserve /data/coolify/ssh/keys/ and ~/.ssh/authorized_keys, or maintain a separate copy.

“Application volume and database data are not part of an instance backup.” — Coolify documentation, Restore Coolify

#1 Best Overall
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Prepare a backup plan before pressing “Back up now”

Keep the encryption key outside the host

Open an administrative shell on the Coolify server and copy the entire line beginning with APP_KEY= from /data/coolify/source/.env. Store it in a password manager or another encrypted location that is not dependent on the Coolify server. Do not save only the value after the equals sign if your recovery procedure expects the complete line.

The database dump and the key are a pair. A valid dump with the wrong key can appear to restore successfully while leaving encrypted credentials unusable. Coolify’s documentation states: “Without this key, restored secrets cannot be read.”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose more than one storage location

Keep at least one copy away from the Coolify host. A practical arrangement is a local copy for fast recovery, an S3-compatible object-storage copy for remote durability, and an independently retained offline copy such as a portable external SSD. The SSD is only a destination for the file Coolify creates; it does not replace application-data backups.

Remote and local retention are separate controls. A retention value of 0 means no limit. Set limits that match the space available at each destination, and decide what should remain when an upload fails. Never treat a successful dashboard job as proof that a remote copy exists until you confirm the storage location.

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Create a Coolify instance backup

  1. Sign in to the Coolify dashboard.
  2. Open Settings > Backup.
  3. If backups are not configured, select the available storage destination and configure it first.
  4. Select Back up now.
  5. Wait for the execution result to show Success.
  6. Confirm that at least one storage location contains a backup. Download a local-storage copy, or retrieve a remote-only copy from the configured S3-compatible provider.
  7. Record the backup date, Coolify version, destination, and the location of the separately stored APP_KEY.

A non-empty file is necessary but not sufficient. A backup job can complete while a later upload or retention action fails, so inspect the destination itself. Keep the resulting .dmp file unchanged; renaming it is fine, but do not edit or recompress it in a way that prevents pg_restore from reading it.

Configure recurring backups

In Settings > Backup, configure the schedule, timeout, local retention, and optional S3 retention. The documented timeout range is 60 to 36,000 seconds. Local and S3 retention limits operate independently, so setting one does not limit the other. A longer retention window helps recover from an undetected configuration mistake, while a shorter window reduces storage consumption.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

After changing the schedule, run an immediate backup and verify its result rather than waiting for the first scheduled execution. Keep a written recovery record with the dashboard URL or server address, storage destinations, retention policy, the key’s secure location, and the date of the last verified backup.

Restore a Coolify database on the existing server

Restoration replaces the current Coolify database. Confirm that the dump and APP_KEY belong to the intended instance before proceeding, and take a fresh copy of the current database if it is still available. Do not use a restoration to experiment on a production database.

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Gather the recovery materials

  • The intended Coolify .dmp file.
  • The matching complete APP_KEY=... line.
  • SSH access with permission to manage the Coolify containers.
  • The Coolify release used when the dump was created, if known.
  • A copy of any required SSH key files.

Restore the dump

  1. Confirm that the coolify-db container is running and healthy.
  2. Place the dump on the target, for example at /data/backups/coolify-db-backup.dmp.
  3. Check that the file exists and is non-empty before touching the database.
  4. Run pg_restore against the Coolify database with --clean --if-exists --exit-on-error --no-acl --no-owner. A command form is pg_restore --clean --if-exists --exit-on-error --no-acl --no-owner --dbname=$DATABASE_URL /data/backups/coolify-db-backup.dmp; use the connection value for the target Coolify database rather than copying an environment variable that does not exist on your host.
  5. Allow the command to finish and stop on the first reported error. The --clean option removes existing database objects before loading the dump, so a mistake here can destroy the current control-plane data.

Do not substitute a different key after the restore. The key must be the one that encrypted the records in the dump, not merely a newly generated key from the target installation.

Move Coolify to a replacement server

A replacement-server migration combines a fresh installation with the database restoration above. The target’s environment must remain internally consistent: retain values such as the new installation’s DB_PASSWORD, and replace only APP_KEY with the saved value from the original instance.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Install Coolify on the replacement server and confirm that its coolify-db container is healthy.
  2. Copy the dump to a protected path such as /data/backups/coolify-db-backup.dmp and verify that it is non-empty.
  3. Set the target environment values, retaining the target installation’s database settings. Replace the generated APP_KEY with the original complete line.
  4. Run pg_restore with --clean --if-exists --exit-on-error --no-acl --no-owner against the target Coolify database.
  5. Restore /data/coolify/ssh/keys/ and ~/.ssh/authorized_keys when those files are needed and were not recreated by the installation.
  6. Rerun the Coolify installer. If the original release is known, specify that version so migrations run against the expected release; do not assume that an unrelated version will interpret every database schema identically.
  7. Open the dashboard and complete the verification checks before directing normal operations to the replacement host.

Keep the old host isolated until the new instance is validated. Running both control planes against the same managed resources can create confusion about which dashboard is authoritative.

Verify the restore before declaring success

A successful pg_restore process only proves that PostgreSQL accepted the dump. It does not prove that encrypted values, server access, or deployments work. Coolify documentation puts this plainly: “A backup is not a restore test.”

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
  • Open the dashboard without an encryption error.
  • Confirm that expected projects and resources are present.
  • Check that instance settings and deployment history appear.
  • Validate localhost from the dashboard.
  • Confirm that each managed server connects.
  • Inspect a resource that uses stored credentials; a credential that cannot be decrypted indicates an APP_KEY mismatch.
  • Run a controlled deployment or other low-risk health check after confirming that workload data is available separately.

Perform this exercise periodically on a disposable target rather than waiting for an outage. Record the elapsed time, commands, missing prerequisites, and any manual corrections, then update the recovery record.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Back up workload data separately

The Coolify instance dump restores orchestration metadata, not the data your applications produce. Build a second backup schedule for every stateful service and persistent mount.

Workload type Required protection Recovery consideration
PostgreSQL Coolify’s engine-aware PostgreSQL backup or an equivalent PostgreSQL-native process Restore the database separately, then validate schema and application connectivity.
MySQL or MariaDB Engine-aware MySQL or MariaDB backup Preserve compatible server versions and credentials.
MongoDB Engine-aware MongoDB backup Test a restore into an isolated database before changing production endpoints.
ClickHouse Engine-aware ClickHouse backup Account for large datasets and the time needed to rebuild tables.
SQLite Engine-aware SQLite backup Capture the database file consistently while the application is quiescent when required.
Redis, Dragonfly, or KeyDB Use that engine’s persistence and backup tools Decide whether the data is authoritative or disposable cache data.
Docker volumes and directory mounts Storage backup copied outside the deployment server Restore ownership, permissions, paths, and application-specific files.
External storage Back up the external storage system itself Verify that restored applications can reach the restored endpoint.

Keep workload copies independent of the Coolify server. If both the control-plane dump and the application data live on the same host, a disk failure, ransomware event, or accidental deletion can remove the entire recovery set.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common failure modes and fixes

The dashboard says success, but no remote file exists

Inspect the configured S3-compatible destination and its retention policy directly. Download a confirmed copy, record its path, and keep a local or offline copy as well. A successful database export does not guarantee a successful upload.

Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0 | for PC, Mac, Laptop, PS4, Xbox one, Xbox 360-(Black)
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.

Restored secrets produce an encryption error

Stop and verify the complete APP_KEY=... line character by character. Restore again with the key that belonged to the source instance. Generating a new key cannot decrypt values encrypted with the old one.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The restore fails part way through

Check that coolify-db is healthy, the dump is non-empty and readable, and the target has sufficient disk space. Run the command with --exit-on-error so the first failure is visible. Do not repeatedly overwrite a production database without preserving the current state and identifying the failing object.

Projects are present, but servers do not connect

Check the restored SSH key files, including /data/coolify/ssh/keys/ and ~/.ssh/authorized_keys, then validate localhost and each managed server. The control-plane database can be correct even when host-level SSH material was not restored.

The target runs a different Coolify release

Use the original version when it is known and rerun the installer so migrations execute in the expected sequence. If the original version is unknown, preserve the dump and current target state, test the migration on a disposable server, and document the result before production cutover.

Choose a recovery design that matches your risk

Design choice Strength Limitation
Local copy on the Coolify host Fastest access for a routine restore Lost with a host or disk failure.
Separate server Protects against failure of the Coolify host Still depends on another online system and its access controls.
Portable offline media Independent of network and host compromise Requires secure handling, update discipline, and a way to verify the media.
S3-compatible object storage Remote copies and configurable retention Requires credentials, upload monitoring, and independent confirmation that objects exist.
Untested backup file Low effort Shows export success, not recoverability.
Scheduled disposable restore test Measures real recovery confidence Consumes time and a temporary target, but exposes missing keys, SSH files, and workload backups before an outage.

Protect the dump and APP_KEY with the same care as production credentials. Limit access, encrypt offline media, and keep recovery instructions where an administrator can reach them without relying on the failed Coolify host.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$219.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$189.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.