# Coolify Mirror > Coolify Mirror (coolify-mirror) is a free, open-source (MIT) command-line tool that migrates Coolify apps between servers. It backs up one app, one or more projects, or a whole Coolify server, and restores it on another Coolify with one pasted command. Apps, databases, volumes, environment variables, secrets, domains, images and proxy settings arrive running and verified. Works with Coolify v4.3, v4.4, v4.5, v4.6 and v4.7 (both servers on the same version), on Linux amd64 and arm64. Not affiliated with Coolify or coolLabs. Current version: 1.10.6. Tested with Coolify 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; every new Coolify release is tested automatically every day. ## How to migrate Coolify to a new server 1. Install Coolify on the new server, exactly the same version as the old one. 2. On the old server run: `curl -fsSL https://raw.githubusercontent.com/mtalavi/coolify-mirror/main/install.sh | sudo sh` 3. In the menu choose "Back up apps", pick the projects (or "Back up the whole server"), start the backup, then share it through Coolify's proxy on port 443. The old server prints one command with a share code. 4. Paste that command on the new server, for example: `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` 5. Answer Yes after reading the list, keep or change each domain. The tool restores everything, starts it through Coolify and reports "Restore complete · everything verified". 6. Point DNS to the new server, move GitHub webhooks and scheduled tasks, and free the disk space on both servers (Saved files & disk space → All backups → ALL). ## Automatic off-site backups (disaster recovery) 1. Once: `sudo coolify-mirror recovery-key create --email you@example.com --telegram CHAT_ID` - the key that opens every backup on any server; shown once, sent to you, never stored on the server. 2. Once: install rclone and add a destination (`rclone config`: Google Drive, S3, SFTP, Dropbox, 70+); a plain folder also works. 3. Every night: `sudo coolify-mirror schedule add --at 03:30 --full --to gdrive:coolify-backups --keep-remote 7 --keep-local 0` (systemd timer). One-off or from your own script: `sudo coolify-mirror backup --full --to gdrive:coolify-backups --keep-remote 7 --keep-local 0`. The copy is checked (size + checksum), then deleted from the server. Failures are reported by email/Telegram (`notify set`). 4. Server lost: on a new server install the Coolify version in the backup file name (coolify-HOST-full-coolify4.5.0-DATE.cmb), set up the same rclone remote, then `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...` (the newest backup of the folder). ## What moves - Projects, environments, applications, services and databases, with their env vars, secrets, tags, storages, scheduled tasks and backup schedules - PostgreSQL, MySQL and MariaDB as native dumps taken while they run (with every database account, its password and grants); Redis, MongoDB, ClickHouse and SQLite data copied as files; Docker volumes and host folders - The exact Docker images that run (no rebuild needed), domains, proxy settings, Git sources and keys, S3 storages, secret-manager links (Vault, Doppler, Infisical) - Whole-server mode: the Coolify database, users, settings, keys, proxy and certificates, every volume and image (onto an empty Coolify only) ## Safety - The backup is one age-encrypted file; it travels over HTTPS with a certificate pinned to the share code, through Coolify's own proxy on port 443 (or a direct port). - Before anything changes: same-version check, disk space, conflicts, domains, Coolify's bundle validation and a trial import in a rolled-back transaction. - A failed restore rolls back. Nothing is deleted: replaced volumes and folders are kept aside. - SUCCESS is printed only when every restored resource runs like on the source and its domains answer through the proxy. ## Limits - Both servers must run exactly the same Coolify version (the tool says which one to upgrade). - Resources on remote servers, preview deployments and Swarm are not part of a selective backup. - DNS, GitHub webhooks and scheduled tasks must be switched to the new server by hand. - Coolify Cloud (app.coolify.io) is not a supported target: the tool needs the Coolify host itself. ## Good to know - After the first install it is a normal command: `sudo coolify-mirror` (menu), `sudo coolify-mirror restore CODE`, `coolify-mirror help`. - On the share screen, `c` copies the command for the new server to your own clipboard (OSC 52, also over SSH); `s` copies the short one. - A whole-server restore keeps the new server's own panel address and IPs (`--panel-url keep|source|none|URL`) and checks the panel answers. - Panel unreachable after a whole-server restore made with an older version: `sudo coolify-mirror repair-panel`. ## Links - Website: https://coolify-mirror.pages.dev/ - Source code and full documentation (README): https://github.com/mtalavi/coolify-mirror - Releases and changelog: https://github.com/mtalavi/coolify-mirror/releases - Daily compatibility results: https://github.com/mtalavi/coolify-mirror/blob/compat/compat.json - Security policy: https://github.com/mtalavi/coolify-mirror/blob/main/SECURITY.md ## Coolify 4.6 validation Selective and off-site full restore tests compare database contents, volumes and HTTP responses, encrypted HTTPS Git credentials, locked environment variables and scoped/paused API tokens. Selective restores do not carry source users or API tokens; configure access on the target team. Full restores carry these database records. Evidence and limitations: https://github.com/mtalavi/coolify-mirror/blob/main/docs/testing-4.6.0.md ## Coolify 4.7.6 validation Coolify 4.7.6 (2026-11-19) only updates the panel image: PHP, nginx and a PHP-FPM listener bound to loopback, with no database or application change. Mirror 1.10.4 passed the real selective and full off-site restore lab on fresh 4.7.6 installs unchanged; no new release was needed. ## Mirror 1.10.6 Mirror 1.10.6 (2026-11-23): --set-domain and the domain step also move routes for every subdomain: Traefik HostRegexp patterns (dots written as [.], \. or \\.) and *.wildcards in raw compose files, application variables and env files on the server. When such a route moves, the restore prints a red warning naming the new *.domain, which needs a DNS record pointing to the new server and a certificate covering it (Cloudflare's free certificate covers one level below the zone). Checked in the real lab with a subdomain routed by HostRegexp. ## Mirror 1.10.5 Mirror 1.10.5 (2026-11-23): Docker Compose applications with a raw compose deployment start from the restored images (image names such as ${SOURCE_COMMIT} resolved from .env) instead of a Coolify build on the target; --set-domain also rewrites raw compose labels (Traefik, Caddy), application variables and env files on the server; a failed deployment reports the error from Coolify's deployment log. The real lab includes a raw compose application whose build fails on the target. ## Coolify 4.7.5 validation Mirror 1.10.4 (2026-11-17) is an audit release: MySQL/MariaDB accounts added after the first start travel with their passwords, roles and grants; a scheduled backup refuses to upload into its own working folder, reports every failure, waits for a running backup or restore and checks its options when added; a folder shared by several servers asks which backup to restore; built with Go 1.26.11 (security fixes in HTTP/TLS). The real lab now also checks a MariaDB account added after the first start. Selective restores preserve all destinations of scheduled database and volume backups, including SSH keys needed only by secondary SFTP destinations. Real selective and full off-site restores on Coolify 4.7.5 check those links, IPv6 SFTP settings and legacy API token scopes. Full restore preserves the valid grant, read permission and paused state. Selective restore excludes the source token. Evidence and test scope: https://github.com/mtalavi/coolify-mirror/blob/main/docs/testing-4.7.5.md ## Coolify 4.7 validation SFTP destination SSH-key dependencies and resource-specific vulnerability policies/ignores are preserved in selective restores. Inherited instance/team/server policies and team-wide ignores remain the target's; scan history is not carried selectively. Full restores carry the database. Real lab checks also cover host pins and multiline values including trailing newlines. Evidence and limitations: https://github.com/mtalavi/coolify-mirror/blob/main/docs/testing-4.7.3.md