All manual sections

DocumentationMoving an account to another server

Moving an account to another server

An account moves, with everything it has, to another server managed by the panel and linked in Linked servers: sites with their files, MariaDB and PostgreSQL databases, mailboxes with their messages, forwarders, cron jobs, HTTPS certificates, DNS records, SFTP keys and passwords, the sites' PHP settings and the account's own limits. Users keep signing in with the same passwords (account, databases, mailboxes). Administrators only.

Before you start

  • Link the target server in Linked servers with an API token of that server (see Linked servers). The move goes through the panel API with that token: no SSH access is needed.
  • Both servers must run the same panel version (0.38.0 or later).
  • On the target server set the public IP address (Server › Network). If the account has mailboxes and mail is off there, the check offers Enable mail on the destination server: the move enables it before copying the mailboxes (from 0.40.6).

How to do it

Open the account in Accounts, press Move to another server, choose the server and press Check. The target server answers with:

  • what moves: sites, databases, mailboxes, cron jobs and the space used;
  • what prevents it: an account, site, database or mail domain with the same name already there, disk space (about twice the space used plus 1 GB is needed), mail not enabled (unless you choose to enable it);
  • what else moves: the SFTP keys, the sites with their own PHP settings, the account's own limits (if "Isolation and limits" is not installed there, the limits are saved and apply once you install it);
  • good to know: a PHP version not installed there (the site will use the default one: install it first from Server › PHP if needed), Apache compatibility not installed, a Node.js or Python application to start again, a package or reseller that does not exist there;
  • where the DNS changes: for each site the DNS connection that manages its zone (this server, Cloudflare, 1PrimeCDN) or "to be changed manually".

Choose how many days the data stays here after the move (1 to 90, usually 7), then press Move the account. The work goes on in the background, with the log of the steps:

  1. First copy: everything is copied to the new server while the sites keep running here. There the account stays suspended and the cron jobs paused.
  2. Suspension: here the sites show the "Maintenance in progress" page (in Italian and English, asking to come back in a few minutes) and the account is suspended, so nobody works on two copies.
  3. Final copy: only what changed since the first copy, deleted files and messages included; the databases are copied again. It usually takes a few minutes.
  4. DNS: the records of the sites (and the other records of their zones that pointed to this server, such as mail.) are pointed to the new server, in the DNS connection that manages them. There the account is reactivated and the cron jobs start again.

Until the DNS step you can press Stop: the new server deletes what it received and the account is active here again, without the maintenance page.

If a step fails, the sites work here again and the new server keeps what it already received. The message says at which step it stopped and why; once the problem is solved press Retry: the move starts again from that step (the new server applies the copy again without duplicates). If you'd rather give up, Undo the move deletes from the new server what it received. If it stops at the DNS step, the account is already live on the new server: Retry only updates the DNS again.

Afterwards

Here the account stays suspended, with all its data, for the days you chose; its sites keep showing the maintenance page to visitors who still reach this server through cached DNS. In Accounts the account is labelled "Moved to …" and a notice at the top of the page says how many accounts are kept here (and for which the period has ended).

Nothing is deleted by itself. Once you have checked that everything works on the new server, open the account, press Move to another server and use Remove from this server: type the account name to confirm (before the end of the period you must also tick the early removal). The account, its sites with their files, databases and mailboxes are deleted from here; the new server is not touched. If this server also runs the DNS of the sites, their zones are deleted with the sites: first check that the domains' nameservers point elsewhere.

Until you remove it you can press Undo the move: the DNS records come back to this server, the account is active here again and it is deleted from the new server (with whatever changed there in the meantime).

DNS records managed elsewhere (at the registrar or at a provider not connected to the panel) must be changed manually to the address of the new server, which the check shows.

In the same window, Previous moves lists the account's moves (completed, stopped, undone, removed); GET /api/v1/moves returns all of them.

What does not move

  • The logs of the sites and the temporary folders.
  • The passkeys and the authenticator app of the account (they are bound to the panel address): they must be set up again on the new server.
  • Node.js and Python applications: the files arrive, the application is started again from the site's Runtime tab.
  • The backups already made stay on this server.