Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Back Up and Restore a Coolify Instance (Including a Move to a New Server)

A Coolify instance dump restores the control plane—not application databases, volumes, or files. This guide covers dashboard backups, APP_KEY protection, off-host retention, pg_restore, replacement servers, and restore testing.
Length11 min Posted Quest giverVGSources Team
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, encrypted credentials, and deployment history, but it does not preserve your applications’ files, workload databases, Docker volumes, or external storage. A reliable recovery plan therefore has three separate parts: create the Coolify dump, protect the matching APP_KEY, and run independent backups for every workload that stores data.

Use Settings > Backup > Back up now to create the dump, keep at least one copy away from the Coolify host, and test a restore on a disposable target. On a replacement server, restore the database with the original key and, when possible, the Coolify version that created the backup.

As an Amazon Associate I earn from qualifying purchases.

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.

What a Coolify instance backup actually contains

The instance dump is the database for Coolify itself. It describes how Coolify is configured and what it knows about your deployments; it is not a snapshot of every server, container, mount, or database connected to Coolify.

Data In the instance dump? How to protect or recover it
Projects and resources Yes Restored with the Coolify database.
Instance settings and deployment history Yes Restored with the Coolify database.
Saved credentials Yes, encrypted Restore the exact matching APP_KEY or the encrypted values cannot be read.
Application source files and build artifacts No Use the source repository and an appropriate artifact or file backup.
PostgreSQL, MySQL, MariaDB, MongoDB, ClickHouse, or SQLite data used by an application No Configure an engine-aware database backup for each workload.
Docker volumes and directory mounts No Back up the underlying storage separately and keep a copy outside the deployment server.
External storage connected to an application No Use that storage system’s own backup and retention controls.
SSH key files used by a replacement installation Not supplied by the database dump Preserve /data/coolify/ssh/keys/ and ~/.ssh/authorized_keys, or maintain a separate backup of those files.

Coolify’s documentation states the boundary plainly: “Application volume and database data are not part of an instance backup.” Treat the dump as the control-plane recovery layer, not as a complete application disaster-recovery archive.

#1 Best Overall
Sale
Western Digital 8TB My Book Desktop External Hard Drive, USB 3.0, External HDD with Password Protection and Backup Software - WDBBGB0080HBK-NESN
  • Massive capacity, up to 22TB capacity. (1TB = one trillion bytes. Actual user capacity may be less depending on operating environment.).Specific uses: Personal
  • Includes software for device management and backup with password protection (Download and installation required. Terms and conditions apply. User account registration may be required.)
  • 256-bit AES hardware encryption
  • SuperSpeed USB (5 Gbps); USB 2.0 compatible
  • Trusted storage built with WD reliability

Protect the APP_KEY before you need a restore

Coolify encrypts stored secrets. The encryption key is the complete APP_KEY= line in /data/coolify/source/.env; the database dump does not contain that key. Copy the line exactly, including its prefix and every character after it, into a password manager or another secure location that is independent of the Coolify server.

Do not put the only copy in the same filesystem as the dump. A disk failure, accidental deletion, ransomware event, or loss of the host would otherwise remove both the database and the key. Limit access to the key because possession of it is what makes the encrypted credentials in the restored database usable. Coolify’s documentation warns: “Without this key, restored secrets cannot be read.”

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

Before creating a backup

  • Confirm that you can sign in to the Coolify dashboard with administrative access.
  • Choose a destination outside the Coolify host before you start. An S3-compatible object-storage destination is suitable for an automated copy; a downloaded file on a portable external SSD gives you an independently retained offline option.
  • Identify the workload databases, volumes, directory mounts, and external storage attached to your applications. They need separate schedules.
  • Record the Coolify version. The version used when a dump was created is important when you rebuild a server and rerun the installer.
  • For a possible server replacement, locate /data/coolify/ssh/keys/ and ~/.ssh/authorized_keys and decide where those files will be stored securely.

Create an instance backup from the dashboard

  1. Open the Coolify dashboard and go to Settings > Backup.
  2. If backups are not enabled, configure a storage location and the schedule on this page.
  3. Select Back up now.
  4. Wait for the execution result to show Success. A request that was merely started is not proof that a usable dump exists.
  5. Confirm that at least one storage location contains the resulting file. Download a local-storage copy, or retrieve a remote-only copy from the S3-compatible storage service.
  6. Copy the complete APP_KEY= line from /data/coolify/source/.env into your independent secure store.

Keep the downloaded dump in a protected location and verify that the file is present and non-empty before considering the job complete. If the dashboard reports a failed remote upload, retain the local copy and investigate the destination rather than deleting the only successful copy.

Set frequency, timeout, and retention deliberately

Coolify exposes separate controls for recurring frequency, execution timeout, local retention, and optional S3 retention. The documented timeout range is 60 to 36,000 seconds. Retention limits operate independently: a local limit controls local copies, while an S3 limit controls remote copies. A retention value of 0 means no limit, so storage can grow without automatic pruning.

Setting What it controls Decision to make
Frequency How often Coolify creates a new instance dump Choose an interval that meets your acceptable control-plane data loss.
Timeout How long a backup operation may run Use a value from 60–36,000 seconds that allows your database and destination to finish without masking a stalled transfer.
Local retention How many or how much local history is retained, according to the dashboard control Keep enough history to recover from a bad configuration that was backed up repeatedly.
S3 retention Remote history retained in the S3-compatible destination Set independently from local retention so a host failure does not remove every generation.
Value 0 No automatic retention limit Use only when you will monitor and prune storage yourself.

Never design the system so the only successful copy remains on the Coolify server. A practical arrangement is an automated S3-compatible copy plus a periodically downloaded .dmp file on portable offline media, with the APP_KEY and recovery notes stored separately.

Rank #2
Seagate One Touch 24TB External Hard Drive Desktop HDD - USB-C Compatible with Most Windows and macOS, Rescue Recovery (STNB24000400)
  • No wall warts: Work freely with its bus-powered USB-C. No wall outlet required.
  • Big on space: High-capacity storage to store all your files in one place.
  • Reliable backup: Safeguard assignments, projects, or sensitive files with trusted performance.
  • Fuss-free, clutter-free: One port, one cord, quick connect.
  • Peace-of-mind: Comes with two-year limited warranty and Rescue Data Recovery Services.

Back up workload databases and persistent files separately

Restoring the Coolify database recreates the control-plane records, not the data that your containers write. Build a second backup plan for every stateful workload and test that plan independently.

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

Relational and document databases

Use Coolify’s engine-aware database backup features for PostgreSQL, MySQL, MariaDB, MongoDB, ClickHouse, and SQLite. Each engine has different consistency, locking, export, and restore requirements; select the engine that matches the actual service and retain enough history for your recovery objective.

Redis-compatible services

Redis, Dragonfly, and KeyDB require their own persistence or backup tooling. An instance dump that lists a resource does not contain the keys held by that service.

Volumes, directory mounts, and external storage

Configure storage backups for application volumes and directory mounts. Keep at least one copy outside the deployment server and perform a restoration test. For external storage, use the storage system’s native backup and retention mechanism; Coolify cannot reconstruct those objects from its own database.

Document the relationship between each workload backup and its Coolify resource name. During a full recovery, you need to know which database dump, volume archive, or external-storage snapshot belongs to which application before you reconnect or redeploy it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
WD 2TB My Passport, Portable External Hard Drive, Black, backup software with defense against ransomware, and password protection, USB 3.1/USB 3.0 compatible - WDBYVG0020BBK-WESN
  • Slim durable design to help take your important files with you
  • Vast capacities up to 6TB[1] to store your photos, videos, music, important documents and more
  • Back up smarter with included device management software[2] with defense against ransomware
  • Help secure your important files with password protection and hardware encryption
  • 3-year limited warranty

Understand the destructive part of a restore

A restore replaces the current Coolify database. The pg_restore options used for the documented procedure clean existing objects before loading the dump, so a mistake can overwrite the control-plane state currently on the target.

  • Confirm the dump filename, creation time, and instance identity before running the command.
  • Confirm that the APP_KEY came from the same instance as the dump.
  • If the target contains valuable current configuration, create a fresh backup of that target first.
  • Schedule a maintenance window and avoid changing projects or starting deployments while the database is being replaced.

Restore Coolify on the existing server

Use this path when the host and its filesystem are still available but the Coolify database must be rolled back.

Gather the recovery set

  • The intended .dmp file.
  • The matching complete APP_KEY= line.
  • SSH access to the server.
  • The Coolify version that created the dump, if known.

Confirm the database container

On the target, confirm that the coolify-db container is running and healthy. Do not proceed against a stopped or unhealthy database; resolve that condition first so a restore failure is not confused with a container failure.

Place and check the dump

Copy the file to a path readable from the target, for example /data/backups/coolify-db-backup.dmp. Verify that it exists and is non-empty. Use the exact file you identified during the pre-restore check, not an automatically generated filename whose instance is uncertain.

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

Run pg_restore with the required safeguards

Run pg_restore against the target Coolify database with the database connection values used by that installation. The command pattern is:

Rank #4
BUFFALO LinkStation 210 4TB 1-Bay NAS Network Attached Storage with HDD Hard Drives Included NAS Storage that Works as Home Cloud or Network Storage Device for Home
  • Value NAS with RAID for centralized storage and backup for all your devices. Check out the LS 700 for enhanced features, cloud capabilities, macOS 26, and up to 7x faster performance than the LS 200.
  • Connect the LinkStation to your router and enjoy shared network storage for your devices. The NAS is compatible with Windows and macOS*, and Buffalo's US-based support is on-hand 24/7 for installation walkthroughs. *Only for macOS 15 (Sequoia) and earlier. For macOS 26, check out our LS 700 series.
  • Subscription-Free Personal Cloud – Store, back up, and manage all your videos, music, and photos and access them anytime without paying any monthly fees.
  • Storage Purpose-Built for Data Security – A NAS designed to keep your data safe, the LS200 features a closed system to reduce vulnerabilities from 3rd party apps and SSL encryption for secure file transfers.
  • Back Up Multiple Computers & Devices – NAS Navigator management utility and PC backup software included. NAS Navigator 2 for macOS 15 and earlier. You can set up automated backups of data on your computers.
pg_restore --clean --if-exists --exit-on-error --no-acl --no-owner --dbname=$COOLIFY_DATABASE /data/backups/coolify-db-backup.dmp

Set $COOLIFY_DATABASE to the target database name and provide the target host, port, user, and password through the installation’s normal connection method when they are required. Do not guess credentials or point the command at an application database. The flags have these purposes:

Flag Effect
--clean Removes database objects before recreating them.
--if-exists Suppresses cleanup errors for objects that are not present.
--exit-on-error Stops at the first restore error instead of silently continuing.
--no-acl Does not restore dump-time access-control entries.
--no-owner Does not try to reassign ownership to roles from the source system.

Restart or rerun the installer when required

After the database load, rerun the Coolify installer. If the dump came from a known release, specify that original version when necessary so migrations run against the release expected by the restored data. Keep the target installation’s environment values, including its database password, and replace only APP_KEY with the saved value.

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

Check the result

  • The dashboard opens without an encryption error.
  • Projects and resources appear with the expected names and settings.
  • Localhost validation succeeds.
  • Managed servers connect.
  • Deployment history and instance settings are present.

Only after these checks pass should you proceed to restore workload databases, volumes, and external storage through their separate procedures.

Move Coolify to a new server

A replacement host requires the same database restore, plus a clean installation and preservation of the files that are not in the dump.

Item Action on the replacement host
Coolify software Install Coolify and use the original version when it is known and required for compatible migrations.
Environment values Keep values generated for the new installation, such as DB_PASSWORD; replace only APP_KEY with the saved key.
Instance database Ensure coolify-db is healthy, place the dump on the host, and run the safeguarded pg_restore procedure.
SSH identity and access Restore /data/coolify/ssh/keys/ and ~/.ssh/authorized_keys if they are missing.
Application data Restore each workload database and storage backup separately; the Coolify dump cannot supply them.
  1. Install the replacement server and establish SSH access.
  2. Before restoring anything, confirm which dump and APP_KEY belong to the intended old instance.
  3. Preserve the new installation’s environment values and set the saved APP_KEY.
  4. Copy the dump to a path such as /data/backups/coolify-db-backup.dmp and check that it is non-empty.
  5. Confirm the coolify-db container is running and healthy, then run pg_restore with --clean --if-exists --exit-on-error --no-acl --no-owner.
  6. Restore the SSH key directory and authorized-keys file from the separate backup when needed.
  7. Rerun the installer using the original Coolify version when necessary.
  8. Perform the dashboard, encryption, localhost, managed-server, project, resource, history, and settings checks before reconnecting workloads.

The database restore brings back Coolify’s knowledge of resources; it does not copy those resources’ servers or data. Reconnect only after the corresponding workload and storage backups have been restored or verified on their own systems.

Best Value
Sale
UGREEN NAS DH2300 2-Bay for Beginners & Personal Users, Phone Backup | AI Album, Private Cloud/Remote Access, File Sharing, Multi-Device Backup, Home Entertainment, 4GB RAM on Board (Diskless)
  • Entry-level NAS Personal Storage:UGREEN NAS DH2300 is your first and best NAS made easy. It is designed for beginners who want a simple, private way to store videos, photos and personal files, which is intuitive for users moving from cloud storage or external drives and move away from scattered date across devices. This entry-level NAS 2-bay perfect for personal entertainment, photo storage, and easy data backup (doesn't support Docker or virtual machines).
  • Set Your Devices Free, Expand Your Digital World: This unified storage hub supports massive capacity up to 64TB.*Storage drives not included. Stop Deleting, Start Storing. You can store 22 million 3MB images, or 2 million 30MB songs, or 43K 1.5GB movies or 67 million 1MB documents! UGREEN NAS is a better way to free up storage across all your devices such as phones, computers, tablets and also does automatic backups across devices regardless of the operating system—Window, iOS, Android or macOS.
  • The Smarter Long-term Way to Store: Unlike cloud storage with recurring monthly fees, a UGREEN NAS enclosure requires only a one-time purchase for long-term use. For example, you only need to pay $459.98 for a NAS, while for cloud storage, you need to pay $719.88 per year, $2,159.64 for 3 years, $3,599.40 for 5 years. You will save $6,738.82 over 10 years with UGREEN NAS! *NAS cost based on DH2300 + 12TB HDD; cloud cost based on 12TB plan (e.g. $59.99/month).
  • Blazing Speed, Minimal Power: Equipped with a high-performance processor, 1GbE port, and 4GB RAM on Board, this NAS handles multiple tasks with ease. File transfers reach up to 125MB/s—a 1GB file takes only 8 seconds. Don't let slow clouds hold you back; they often need over 100 seconds for the same task. The difference is clear.
  • Let AI Better Organize Your Memories: UGREEN NAS uses AI to tag faces, locations, texts, and objects—so you can effortlessly find any photo by searching for who or what's in it in seconds. It also automatically finds and deletes similar or duplicate photo, backs up live photos and allows you to share them with your friends or family with just one tap. Everything stays effortlessly organized, powered by intelligent tagging and recognition.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Test recovery instead of trusting a success message

A successful backup execution proves that Coolify produced a file or completed an upload. It does not prove that the file, key, database connection, migrations, SSH material, or workload backups will work together. Coolify’s documentation summarizes this distinction: “A backup is not a restore test.”

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

Use a disposable target for a full rehearsal. Install the appropriate Coolify version, load a copy of the dump, set the matching APP_KEY, and execute the same verification checks used for an incident. Record how long the database restore and installer steps take, where the files are located, and which workload backup must be restored next. Repeat after major version changes or changes to your storage and retention design.

Troubleshoot common recovery failures

The dashboard reports an encryption error

The target is using a different or incomplete APP_KEY. Stop and compare the saved complete line with /data/coolify/source/.env on the target. Set the matching value, then rerun the installer or restart sequence required by the installation.

pg_restore stops immediately

Check that coolify-db is healthy, the dump is non-empty, and the connection points to the Coolify database rather than a workload database. Because --exit-on-error stops at the first problem, capture that first error before changing anything. A version mismatch can also require installing the release that created the dump and rerunning the migration step.

The dashboard opens but projects are missing

The wrong dump may have been selected, or the restore may have targeted a different database. Recheck the dump’s origin and creation time, the target database name, and the installer version before attempting another destructive restore.

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

Managed servers no longer connect

The database records may be present while the SSH files are absent. Restore /data/coolify/ssh/keys/ and ~/.ssh/authorized_keys from their separate backup, then validate the managed-server connections again.

Applications start without their data

This is expected when only the instance dump was restored. Recover the relevant engine-aware database backup, volume or directory archive, and external-storage snapshot, then verify the application against those restored data sets.

The remote copy is unavailable

Check whether the last run uploaded successfully and whether the configured S3 retention removed older generations. Retrieve any successful local copy, keep it off-host, and correct the remote destination before deleting local history.

Quick Recap

SaleBestseller No. 1
Western Digital 8TB My Book Desktop External Hard Drive, USB 3.0, External HDD with Password Protection and Backup Software - WDBBGB0080HBK-NESN
Western Digital 8TB My Book Desktop External Hard Drive, USB 3.0, External HDD with Password Protection and Backup Software - WDBBGB0080HBK-NESN
256-bit AES hardware encryption; SuperSpeed USB (5 Gbps); USB 2.0 compatible; Trusted storage built with WD reliability
$329.99
Bestseller No. 2
Seagate One Touch 24TB External Hard Drive Desktop HDD - USB-C Compatible with Most Windows and macOS, Rescue Recovery (STNB24000400)
Seagate One Touch 24TB External Hard Drive Desktop HDD - USB-C Compatible with Most Windows and macOS, Rescue Recovery (STNB24000400)
No wall warts: Work freely with its bus-powered USB-C. No wall outlet required.; Big on space: High-capacity storage to store all your files in one place.
Bestseller No. 3
WD 2TB My Passport, Portable External Hard Drive, Black, backup software with defense against ransomware, and password protection, USB 3.1/USB 3.0 compatible - WDBYVG0020BBK-WESN
WD 2TB My Passport, Portable External Hard Drive, Black, backup software with defense against ransomware, and password protection, USB 3.1/USB 3.0 compatible - WDBYVG0020BBK-WESN
Slim durable design to help take your important files with you; Help secure your important files with password protection and hardware encryption
$132.10
Bestseller No. 4
BUFFALO LinkStation 210 4TB 1-Bay NAS Network Attached Storage with HDD Hard Drives Included NAS Storage that Works as Home Cloud or Network Storage Device for Home
BUFFALO LinkStation 210 4TB 1-Bay NAS Network Attached Storage with HDD Hard Drives Included NAS Storage that Works as Home Cloud or Network Storage Device for Home
4TB capacity – 1 Drive bay, HDD included.; Made in Japan – Quality Devices.; 24/7 US-based support, with 2-year warranty, including hard drives.
$192.99

Choose a recovery design that matches the failure you fear

Design question Weak design Stronger design
Scope Only the Coolify database Coolify dump plus engine-aware database, volume, file, and external-storage backups.
Location Only local storage on the Coolify host S3-compatible remote storage plus an independently retained local or offline copy.
Recovery confidence A dashboard result marked Success A tested restore on a disposable target with recorded steps and timings.
Security APP_KEY stored beside the dump on the host APP_KEY stored separately in a secured password manager or equivalent protected location.
Retention and failure handling One retention limit assumed to cover every location Local and S3 retention configured independently, with a response plan for failed uploads.

Final recovery checklist

  • A recent Coolify dump exists and has been copied away from the host.
  • The complete matching APP_KEY line is stored independently.
  • Local and remote retention settings are understood, including the effect of a value of 0.
  • Workload database, volume, directory-mount, and external-storage backups are scheduled separately.
  • The Coolify version used to create the dump is recorded when possible.
  • Replacement-server SSH key files and authorized-keys data are backed up.
  • A restore rehearsal has confirmed the database, key, installer, SSH access, and workload recovery sequence.

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.

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

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 quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
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.