Move Coolify apps between servers.

Back up one app or a whole server. Paste one command on the new one. It arrives running, and verified.

Terminal: coolify-mirror installed with one command, showing its main menu on the old server

A real move, replayed: back up a project on one server and restore it on another.

Two commands. One on each server.

The first installs the tool and opens its menu. The old server prints the second one after the backup.

Old server
$ curl -fsSL https://raw.githubusercontent.com/mtalavi/coolify-mirror/main/install.sh | sudo sh
New server (copy the real line from your old server)
$ curl -fsSL https://raw.githubusercontent.com/mtalavi/coolify-mirror/main/install.sh | sudo sh -s restore 203.0.113.10/hi4i-2dzx-hmeg-42qp-palx-52s7-zq example
SHA-256 checked on install Linux amd64 and arm64 Coolify 4.3, 4.4, 4.5, 4.6 or 4.7, same version on both

Lost the server? Back in minutes.

Every night a whole-server backup goes to Google Drive, S3, SFTP, Dropbox or a folder — anywhere rclone reaches. The copy is checked, then deleted from the server, so the disk never fills.

On a new server, one command with your recovery key brings everything back: apps, databases, domains, users, and the panel on the new address. The backup’s name says which Coolify version to install first.

Once: the recovery key (shown once, sent to you by email or Telegram)
$ sudo coolify-mirror recovery-key create --email you@example.com --telegram 123456789
Every night: back up, upload, check, delete here, keep 7 there
$ sudo coolify-mirror schedule add --at 03:30 --full --to gdrive:coolify-backups --keep-remote 7 --keep-local 0
The day the server is lost, on a new one
$ curl -fsSL https://raw.githubusercontent.com/mtalavi/coolify-mirror/main/install.sh | sudo sh -s restore gdrive:coolify-backups --recovery-key AGE-SECRET-KEY-1… example
Encrypted to your recovery key Deleted here only after the copy is checked Email / Telegram when a run fails Also one command for your own scripts

What travels with your app

Pick a project in a list, the way Coolify shows it. Everything that makes it run comes along, and the new server starts it through Coolify itself.

Data, copied while it runs

Volumes, bind folders and files. Containers pause for the seconds a copy takes. Databases never pause.

Backup progress: files, volumes, a database dump and an image, with size, speed and time left

Native database dumps

PostgreSQL, MySQL and MariaDB are saved with pg_dumpall and mysqldump, then loaded with the same image on the new server.

Every Coolify setting

Projects, environments, variables, storages, tags, scheduled tasks and backup schedules. Secrets are re-encrypted for the new server's key.

Projects, the way Coolify shows them

Pick a project and everything in it moves together. Moving one app only? The Postgres behind its DATABASE_URL is found and offered.

Question: also back up what they depend on, listing shop-db used by shop-web through DATABASE_URL

No rebuild on the new server

The exact images your apps run are shipped. Docker Compose apps start from them without cloning or building, which matters most on a slow connection.

0 builds

Domains, last

Right before anything starts, keep each domain or type a new one. Coolify updates its proxy labels.

The whole move, screen by screen

Real screens from a move to a freshly installed Coolify 4.4.2 with the released tool. Pick a step, then a screen.

On the old server

Make the backup and share it

SSH into the old server as root or a sudo user, then run:

curl -fsSL https://raw.githubusercontent.com/mtalavi/coolify-mirror/main/install.sh | sudo sh
  1. What do you want to do?Back up apps
  2. Which project should be backed up?Arrow keys to the project, then enter: everything in it comes along. Several: space on each, then enter.
  3. Ready to back upCheck the list, then Start the backup
  4. How should the other server get this backup?Share a link through Coolify's proxy on port 443
  5. On the other Coolify server, run one of thesePress c: the command is in your clipboard, even over SSH. Already installed there? s copies the short sudo coolify-mirror restore CODE.

Keep this window open while the new server downloads, or press b to keep sharing in the background for 24 hours.

↑↓move enterchoose spacetick several /search escback ctrl+cstop

Restore complete means it really runs

Coolify starts everything. Then the tool checks what actually happened, and says so plainly when something does not work.

Restore complete, everything verified: shop-api, shop-web, shop-cache and shop-db running, domains answering through the proxy

Same services

Every service that ran on the old server is up on the new one.

Stable for 30 seconds

All containers healthy, without a single restart.

Domains answer

Each domain is reached through the local Traefik, not just configured.

Next deploy works

Optional rebuild from the same commit, without cache.

Real moves

Three runs on real Coolify installs (4.3.23 and 4.4.2), with what was measured.

A 7-service Compose app over a slow link

A production Docker Compose app with 7 services, Postgres, 6 volumes and a build script on the host, moved to a server with a slow internet connection.

~1 minto running, no clone, no build
Coolify deploy11 minutes of cloning alone, then hours of building
Coolify MirrorStarted from the shipped images in about a minute
  • 6 containers healthy, Coolify showing running:healthy
  • The domain answered 200 through the new server's Traefik
  • One deployment recorded, with the new server's IDs

Five kinds of apps, zero manual fixes

0manual fixes

A Compose app with a host build script and a named buildx builder, a Dockerfile app, an image app, WordPress with MariaDB, and Postgres. Same secrets, volume data and database rows (md5) as the source, every domain answering, and a full rebuild on the new server.

From paste to verified

2m 30srestore to verified

The tutorial above: a whole project (two apps, Redis and Postgres) moved through port 443 to a brand-new Coolify 4.4.2 with the released 1.9.1. The 47.5 MB download and its checks took a second on the lab network.

Built so nothing gets lost

Encrypted end to end

The backup is one age-encrypted file. It travels over HTTPS with a certificate pinned by the share code. Plain HTTP is never served.

Checked before anything changes

Same Coolify version, disk space, Coolify's own bundle validation, conflicts, and a trial import in a transaction that is rolled back.

Rollback

If the import fails, everything it created is removed. A full restore puts back the previous Coolify database and .env.

Nothing deleted behind your back

An existing volume keeps its data as <name>.cm-old-<time>. Replaced folders stay as safety copies until you delete them.

One run at a time

A lock stops two backups or restores at once. Paused containers always resume, even after ctrl+c.

Ready for Coolify updates

Every run checks the Coolify parts it relies on. A daily job moves real apps between two fresh installs of each new Coolify release.

Under the hood

One file goes from one server to the other. This is what happens on each side.

Old server

  1. Coolify rows of the picked projects
  2. volumes, files, images, dumps
  3. Coolify's own transfer bundle
  4. tar, zstd, age: backup.cmb
HTTPS on port 443, pinned certificate

New server

  1. download, resume, verify
  2. preflight and trial import
  3. restore and import, new IDs
  4. start through Coolify, verify

The tool

  • Go 1.26, one static binary for Linux amd64 and arm64
  • Bubble Tea, huh and Lip Gloss for the terminal interface
  • age encryption (scrypt passphrase) and zstd compression

Inside Coolify

  • Server Transfer bundle (schema_version 1), made and validated by Coolify's own code
  • Secrets decrypted with the old APP_KEY, encrypted again with the new one
  • Traefik TLS passthrough carries the share on port 443

Releases

  • GitHub Actions builds every release and its SHA-256 sums
  • The installer checks the checksum before anything runs
  • A daily test runs a full move on each new Coolify release

Version history

Every release is on GitHub Releases with its binaries and checksums.

1.10.62026-11-23

Subdomain routes move with the domain

Routes for every subdomain move with the domain. A raw compose file that routes its customers' subdomains with a pattern, such as the Traefik rule HostRegexp(^[a-z0-9-]+[.]shop[.]com$), kept pointing at the old domain after --set-domain shop.com=new.shop.com, so every customer address stopped answering on the new server. The pattern now moves too (dots written as [.], \. or \\.), as do *.shop.com wildcards; other subdomains and names that already moved stay as they are. When such a route moves, the restore ends with a red warning: the new *.new.shop.com needs a DNS record pointing to this server and a certificate that covers it (Cloudflare's free certificate covers only one level below the zone), with the exact steps. The real restore lab now routes a subdomain this way and checks it after the move.

1.10.52026-11-23

Raw compose applications start from their images

Docker Compose applications with a raw compose deployment (the file used as it is, often with images named after the commit and settings in env files on the server) now start from the restored images like the others. Before, they were handed to Coolify, which ran their build on the new server; a build that needs the old server or a registry the new server cannot reach failed the restore. --set-domain now also moves the domains written in a raw compose file (Traefik and Caddy labels), in the application's variables and in its env files on the server. A failed deployment shows the error from Coolify's deployment log instead of only pointing at it. The real restore lab now includes such an application, whose build is made to fail on the target.

1.10.42026-11-17

Audit release: database accounts and safer schedules

MySQL and MariaDB dumps now carry the accounts added after the database's first start, with their passwords, roles and grants (before, only the users from the image's environment came back). A scheduled backup can no longer upload into the folder it is written to (which deleted every copy), reports every failure by email or Telegram, waits for a backup or restore that is still running, and refuses invalid options when the schedule is added. Restoring from a folder shared by several servers or by full and app backups asks for the file instead of taking another server's backup. rclone paths such as gdrive:2026/backups work. Built with Go 1.26.11, which fixes 17 security issues in Go's HTTP and TLS code used by the share server; a weekly vulnerability check now runs in CI. Read the test report.

1.10.32026-11-15

Coolify 4.7.5 verified

Selective restores now carry every destination of scheduled database and volume backups. Real selective and full off-site restores verify those links, saved IPv6 SFTP settings and legacy API token scopes. Read the test report.

1.10.22026-11-10

Coolify 4.7.3

SFTP destination SSH keys and resource vulnerability settings now travel in selective restores. The real backup and restore lab checks these dependencies, stored host pins and multiline values with trailing newlines. The same menus, backup format and exact-version checks remain. Read the test report.

1.10.12026-11-04

Coolify 4.6.0 verified

Selective migration and whole-server recovery from SFTP tested on fresh Coolify 4.6.0 servers. The lab now checks database-content checksums, encrypted HTTPS Git credentials, locked environment variables and scoped API token state. Fixes HTTPS links whose certificate pin starts with +, keeping exact certificate checks. Read the test report.

1.10.02026-10-27

Automatic off-site backups

Every night (or from your own script) a whole-server backup goes to Google Drive, S3, SFTP, Dropbox or a folder through rclone, is checked there and only then deleted here; the newest N are kept there and N here. Each backup is also encrypted to a recovery key that is shown once and can be sent to you by email or Telegram, so it opens on any new server: restore gdrive:folder --recovery-key … takes the newest backup and brings the whole server back. Backup file names now carry the Coolify version they need. Restore also takes a folder, an rclone path or an https:// address; failures are reported by email or Telegram.

1.9.72026-10-26

Whole-server restore keeps its panel; copy with one key

A whole-server restore carried the old server's panel address and IPs, so the new panel answered only on the old domain (“not registered” on its own). The panel now keeps this server's address (or the one you choose), Coolify rebuilds its proxy route, and the restore checks the panel answers. sudo coolify-mirror repair-panel fixes a server restored with an older version. Press c on the share screen to copy the command to your own clipboard (s: the short one); the last restore question now says plainly that No keeps everything running; coolify-mirror help starts with the everyday commands; an identical docker-compose.custom.yml no longer warns. The daily test now also moves a whole server.

1.9.62026-10-26

No hang with sudo

The menu no longer hangs after the banner when it is started with curl … | sudo sh on Debian 12 or Ubuntu: sudo's use_pty put it in the background of a terminal that gets no keyboard, so the system stopped it. It now reads the keyboard from your own terminal. A Docker daemon that does not answer ends with a clear message after 30 s instead of a silent wait, and the log names any command that runs longer than 10 s.

1.9.52026-10-25

Coolify 4.5

Works with Coolify 4.5.0 (tested on two freshly installed servers, and again on 4.4.7 and 4.3.24). Coolify 4.5 changed its own Server Transfer exporter; backups carry Coolify's transfer bundle again, and the daily test now fails when a backup comes without it. Secrets that Coolify 4.5 encrypts at rest are re-encrypted for the new server like every other secret. The website answers the common migration questions and has a summary for AI assistants (llms.txt).

1.9.42026-10-22

Coolify 4.4.7 and 4.3.24

Tested with Coolify's security releases 4.4.7 and 4.3.24: a full move on two freshly installed servers for each. Update both servers to the same release before a move; Coolify's patch.sh takes every line to its fix release. The daily test's servers now always get the cpu cgroup controller: without it Docker there could not start containers with a CPU weight, which had wrongly marked 4.3.24 as failed on the test host.

1.9.32026-10-12

Coolify 4.4.6, and a sturdier daily test

Tested with Coolify 4.4.6. A failed daily test no longer stops backups (only restores), and a test whose servers could not even start is no longer published as a failure — that had wrongly marked 4.4.6 as failed.

1.9.22026-10-08

Tidier lists

Domains without the container port (vemela.app, not vemela.app:3000), and list and files columns that stay aligned with long names — found in a test on a real 20-project server.

1.9.12026-10-08

A clear compatibility line

No more "did not work" warning from an older version under "✓ tested" when this release was tested with that Coolify.

1.9.02026-10-08

Coolify 4.4

Works with Coolify 4.4 (tested on 4.4.2 and 4.3.23): Compose apps start from the restored images again, SQLite databases and secret-manager links (Vault, Doppler, Infisical) move with their apps, and a whole-server move no longer rebuilds Compose apps.

1.8.12026-10-08

Tidier screens, safer domains

Domains on their own line in the final box, a cleaner share screen, full progress notes, and a question before a Compose domain moves to a service that had none.

1.8.02026-10-08

Pick projects

A list like Coolify's dashboard: pick a project and its apps, databases, services and domains move together. A review before every backup, backup --project, and a sharper look.

1.7.12026-10-07

A step-by-step guide

A 4-step quick start and every screenshot retaken from a real move. Behind Coolify's proxy, the share screen names the other server instead of the proxy's address.

1.7.02026-10-06

All backups at once

The ALL line deletes every backup in one go, or pick some. On the command line: files delete --backups.

1.6.02026-10-06

Saved files and disk space

See and delete what the tool keeps on both servers. Enter picks the highlighted app, Recommended settings, and a built-in guide.

1.5.02026-10-06

Share codes and one command

One short command per server. Checks against every Coolify update, and coolify-mirror update.

1.4.02026-10-06

Compose apps without a build

Docker Compose apps start from the restored images, without cloning or building.

1.3.12026-10-06

Verified restores

Success only when the new server really runs the apps. Build dependencies on the host travel too, and --verify-redeploy proves the next deploy.

1.2.02026-10-05

Pinned HTTPS and native dumps

HTTPS-only transfer with a pinned certificate, native database dumps, a mandatory preflight, and Coolify's official transfer bundle inside.

1.1.02026-10-04

Domains last, open source

A domains step at the end of every restore. Released under MIT with a one-line installer.

1.0.02026-10-01

First release

Selective and full backups, sharing, restores with rollback, and the interactive menu.

Questions

How do I migrate Coolify to a new server?

Install Coolify on the new server, the same version as the old one. On the old server run the one-line installer, pick the projects (or the whole server), back them up and share the backup: it prints one command. Paste that command on the new server. It downloads and verifies the backup, restores apps, databases, volumes, env vars and domains, starts them through Coolify and checks that every domain answers. Then point your DNS to the new server.

Can I move just one app or one project?

Yes. Pick one project, several, or a single app; the databases and services they use come along. They are merged into the new Coolify next to what is already there. A whole-server backup is the other option, for an empty new Coolify.

Can it back up automatically to Google Drive or S3?

Yes. sudo coolify-mirror schedule add --at 03:30 --full --to gdrive:coolify-backups --keep-remote 7 backs up every night, uploads through rclone (Google Drive, S3, SFTP, Dropbox and 70+ more) or to a folder, checks the copy and then deletes it from the server. A failed run is reported by email or Telegram.

The server is gone. How do I get everything back?

On a new server install the Coolify version written in the backup’s name, set up the same rclone destination, and run curl -fsSL https://raw.githubusercontent.com/mtalavi/coolify-mirror/main/install.sh | sudo sh -s restore gdrive:coolify-backups --recovery-key AGE-SECRET-KEY-1…. It restores the newest backup, starts everything and checks every domain.

The panel does not open after a whole-server restore (“not registered”)

Versions before 1.9.7 restored the old server’s panel address too, so the proxy only knew the old domain. Since 1.9.7 the panel keeps this server’s own address and IPs and the restore checks it answers. A server restored earlier: run sudo coolify-mirror repair-panel (add the panel address, or - for none).

Which Coolify versions work?

Coolify v4.3, v4.4, v4.5, v4.6 and v4.7 (tested with 4.3.23, 4.3.24, 4.4.2, 4.4.6, 4.4.7, 4.5.0, 4.5.1, 4.5.3, 4.6.0, 4.7.0, 4.7.3, 4.7.5 and 4.7.6), with exactly the same version on both servers. At start the tool says whether this version is tested; every new Coolify release is tested automatically. If the versions differ, it tells you which server to upgrade.

Does the old server go down during the backup?

No. With Recommended settings, containers pause only for the seconds their volume copy takes, and databases are dumped while they run. Nothing is deleted on the old server.

Can the new server already have other projects?

Yes. Backing up apps merges them into the new Coolify and keeps everything that is there. An app that already exists can be restored as a copy or skipped. A whole-server backup only goes onto a fresh, empty Coolify.

The new server cannot connect to the old one.

Port 443 of the old server is blocked. On the old server press q, choose Share a saved backup, the same backup, then Share a link on port 8123. Allow 8123 in your provider's firewall too, and run the new command it shows.

My SSH connection dropped during the download.

Keep the old server sharing and run the same command again: the download continues where it stopped. On big servers, run the tool inside tmux.

The new server has no access to GitHub.

The old server also prints a second command that downloads the tool from the old server itself, over the same pinned connection.

What does not move?

Resources on remote servers, preview deployments and Swarm. Webhooks and DNS keep pointing to the old server until you switch them. Between different CPU architectures, Coolify rebuilds the apps.

How is this different from copying the whole server?

Copying /data/coolify and the Docker volumes over root SSH moves everything at once onto an empty server: database files are copied raw and nothing is checked afterwards. Coolify Mirror can move one project into a Coolify that is already in use, needs no SSH key between the servers (a share code on port 443), dumps databases while they run, checks version, space and conflicts before changing anything, rolls back on failure and reports success only when the apps answer on their domains.

Is this an official Coolify tool?

No. It is an independent open-source project under the MIT license, not affiliated with Coolify or coolLabs.

Your next move takes two commands.

$ curl -fsSL https://raw.githubusercontent.com/mtalavi/coolify-mirror/main/install.sh | sudo sh