❯ migrate
Move to MZPanel without starting over.
Connect a live Linux server, adopt running Docker containers, pull in WordPress sites from another host, or move workloads between your own VPSes. Your stack stays standard, and you can leave anytime.
Connect a live server
Install the single Go agent on a VPS that already runs workloads. Nothing is wiped or reinstalled.
$ curl -fsSL https://get.mzpanel.com | sudo INSTALL_TOKEN=<token> bash Read the docs → - One static binary Installs only mzagent, the mz symlink, /etc/mzagent and mzagent.service on Ubuntu 24.04/26.04, Debian 12/13 or AlmaLinux/Rocky 9/10 (beta).
- Idempotent provisioning If you run the stack provisioner, already-installed components are skipped and an existing secured database is never clobbered.
- Zero inbound ports The agent dials outbound over HTTPS on port 443. Existing firewall rules, NAT setups and running services keep working untouched.
- Homelab & agentless options Use MZ_PROFILE=homelab to leave firewall, SSH, timezone and quota settings alone, or add an SSH-only Lite server with zero-knowledge vault keys.
Adopt running Docker workloads
Containers and Compose projects started outside MZPanel appear as External. Bring them under management without recreating them.
$ mz stack list Read the docs → - External detection Any container from docker run or project from docker compose up shows an External badge in the Containers and Stacks tabs.
- Adopt containersPro Writes an on-box app config pointing at the running container with no recreation and zero downtime. Start, stop, logs, stats and backups work at once.
- Adopt Compose stacksPro Copies your docker-compose.yml and .env into /etc/mz/stacks/ and preserves the original Compose project name so services stay running.
- Know what stays manual Adopted containers manage their existing image cleanly. Git rebuilds, release history and rollback apply only to apps built through MZPanel.
Pull a site from another host
Moving a single-site WordPress install from shared hosting or another panel? Scan compatibility first, then import files and database together.
$ mz migrate pull --host old.example.com --user root --remote-root /var/www/html --to example.com Read the docs → - SSH pull Pull directly over SSH from cPanel, DirectAdmin, aaPanel, Plesk, RunCloud or any Linux host using a one-off ephemeral key. Source credentials are never stored.
- Upload package No SSH on the old host? Export a .tar.gz with the embedded MZPanel Migrator plugin or upload a cPanel full backup straight to your server.
- Server path import Already copied or extracted files onto the target VPS? Scan the local path, review the compatibility report and import natively.
- Scan before migrate Checks PHP version, missing extensions, disk space, multisite status and .htaccess files before creating destination state.
- Clean database & SSL setup Rewrites MySQL 8 collations for MariaDB, runs serialized-safe domain search-replace, keeps password salts and issues SSL automatically.
- Clean failure rollback Blockers stop the run before any site shell is built. If a later step fails, the partial site shell, user, database and vhost are removed.
Move between your own servers
Outgrowing a VPS or rebalancing a fleet? Move Docker apps and stacks, clone environments, or copy any site type across servers you own.
$ mz backup all Read the docs → - Move Docker apps & stacksPro Transfers config, named volumes, attached databases, sealed env vars, build args and container cron tasks, with HTTPS verification and Cloudflare DNS cutover.
- Reversible cutover windowPro Keeps the stopped source copy for 0 to 14 days (default 7). Roll back DNS and restart the source until you confirm final deletion.
- Clone project environmentsPro Duplicate shared variables, apps, stacks and sites into a new environment using a domain pattern, with a dry-run preview before anything runs.
- Cross-server site copyPro Clone WordPress, static, PHP, Node.js, Python or Go sites directly box-to-box over a one-shot SSH key under a new domain.
- Restore backups anywherePro Restore any Backup v2 snapshot from S3, Cloudflare R2, Backblaze B2, Google Drive or rclone onto another online server, with optional domain remap.
- Direct box-to-box file transferPro Copy or move folders between servers in File Manager over ephemeral SSH (tar over SSH) without routing bytes through the control plane.
Step by step
Real installer and mz commands. Drive the same steps from the dashboard, SSH or MCP.
- Connect the target box Generate a 1-hour install token in Servers > Add server and run the one-liner as root.
curl -fsSL https://get.mzpanel.com | sudo INSTALL_TOKEN=<token> bash - Check what is on the server Verify the agent is online and list existing Docker containers already running on the host.
mz status --json && mz docker status --json - Adopt containers or pull a site Adopt an external container or Compose stack from the dashboard (Pro), or pull a WordPress site from another host.
mz migrate pull --host old.example.com --user root --remote-root /var/www/html --to example.com - Verify and take a baseline backup Confirm the site or app answers over HTTPS, then run a plain tar.gz snapshot.
mz backup all
What does not move automatically
Plain facts so you can plan the cutover before running anything.
- Non-WordPress inbound migrations: Migrate-in imports single-site WordPress only. Static, PHP/Laravel, Node.js, Python and Go sites, WordPress multisite networks and .wpress archives are not supported by Migrate-in.
- Mailboxes and external DNS: Migrate-in is web-only. Set up mail domains and import mailboxes over IMAP in Mail, and update DNS records at your registrar or Cloudflare.
- Existing non-Docker vhosts: Installing the agent on a live VPS does not auto-import pre-existing Nginx site configs into /etc/mz/sites. Existing Docker containers and Compose stacks can be adopted on Pro.
- Cross-server site DNS & overwrites: Cross-server site clones copy every site type to a new domain, then you update DNS manually. Overwriting an existing site on the target is WordPress-only.
- Certificates, backup schedules & .htaccess: SSL certificates never move between hosts (new certs are issued on the target). Scheduled backup jobs do not travel with moved apps. Custom .htaccess rules are flagged for review.
- Encrypted cross-server restores: Restoring an Advanced-encrypted backup onto a different server requires the origin server passphrase unless you use MZPanel Cloud Backup with vault key escrow.
Leaving MZPanel
You keep root and a standard Nginx, Docker, PHP-FPM and database stack.
- Remove the server in Settings > Danger zone to trigger a clean agent self-uninstall.
- Only mzagent.service, /usr/local/bin/mzagent, /usr/local/bin/mz, /etc/mzagent and /opt/mzpanel are deleted.
- Websites, Docker apps, Compose stacks, databases, mail and files stay untouched and keep serving.
- Backup v2 stores plain .tar.gz archives with db.sql and manifest.json (plus standard gpg when encrypted).
sudo systemctl disable --now mzagent.service
sudo rm -f /etc/systemd/system/mzagent.service /usr/local/bin/mzagent /usr/local/bin/mz
sudo rm -rf /etc/mzagent /opt/mzpanel
sudo systemctl daemon-reload Full details in Install & uninstall docs and Backups.
FAQ
Common questions about moving onto or off MZPanel.
Will installing the agent overwrite my existing Nginx, Docker or databases?
No. The installer only adds the mzagent binary, the mz symlink, /etc/mzagent and mzagent.service. If you run the stack provisioner, it skips components that are already installed and never clobbers a database secured outside MZPanel.
Can I bring existing Docker containers and Compose files into MZPanel?
Yes, on Pro and Max. Containers started with docker run and projects started with docker compose up appear as External. Adopting writes the MZPanel config with zero downtime and leaves running containers untouched.
Which panels and hosts does Migrate-in support?
Migrate-in pulls single-site WordPress installs over SSH from cPanel, DirectAdmin, aaPanel, Plesk, RunCloud or any standard Linux host. You can also upload a cPanel full backup, export a package with the embedded MZPanel Migrator plugin, or import from a local path on the server.
How do I move Node.js, Python, Go, PHP or static sites between servers?
Once both servers run MZPanel (Pro plan), use cross-server site clone from the site Clone drawer (or sites_clone_xserver over MCP/REST). It copies files, database and config directly box-to-box for all six site types.
What if I just want SSH access to a server without installing the agent?
Add it as an agentless Lite server from the web terminal. Nothing is installed on the VPS, and your SSH keys are encrypted in your browser zero-knowledge vault.
What happens if I leave MZPanel?
Remove the server in Settings > Danger zone or stop and delete the agent files over SSH. Only MZPanel agent files are removed. Your Nginx vhosts, Docker containers, databases, mail and files stay intact and keep running.
Start free on one server with unlimited sites, 3 Docker apps or stacks, local backups, the web terminal, MCP and the REST API. No card needed.