Skip to main content

Migration between servers

Salvo brings accounts from another server to this one: files, mail, databases, calendars and contacts, checked at the end. The account stays online on the source during the copy and the syncs, until the cutover, which switches the addresses and takes the account off the source. Everything on the Migration › Servers screen, with each step saying on which server it happens.

● cPanel → cPanel  ● cPanel → DirectAdmin: in testing  planned DirectAdmin as the source

The ? icon on the screen's top bar opens this page.

DirectAdmin as the source is still refused (is not available on DirectAdmin yet). A cPanel source with its mail on a mail node also works: the node must be paired and the account released there too.

Before you start​

  • The same Salvo version on both servers (the screen warns when it is not).
  • The source's SSH open to the destination's IP (the port you choose, 22 by default). The destination pulls the accounts from the source over an SSH channel with a key only for that pair.
  • On the source, Salvo only reads: the pair's key only runs the migration's read requests, only from the destination's IP, and only hands over an account you released, with a deadline.
  • Nothing is overwritten: an account or domain that already exists on the destination blocks.
  • Everything Salvo writes in the account's home is written as the account user, never as root.

The screen​

Migration › Servers has three tabs:

TabWhereWhat for
Bring heredestinationthe accounts on their way: progress, syncs, cutover
Send from heresourcethe account requests, the releases and the authorized destinations
Serversbotheach server's card: profile, comparison, pair and test

Before the first migration, the Bring here tab shows the guide First migration from … to here, with the five steps below and where each one happens (on both, here, automatic, on …).

Migration › Servers: the buttons, the tabs and the first migration guide

  1. Add server and Migrate accounts (only with a paired server).
  2. The tabs.
  3. The guide, with the current step highlighted.

1. Add the source server (on the destination)​

  1. On the source: Migration › Servers › Servers tab › this server card › Download the profile. The profile says what the server has (panel, system, PHP, database, mail, disks, packages); it carries no password or key.
  2. On the destination: Add server › Choose the file (or paste the content) › Read the profile.

Add server: the profile file or the pasted content

The source's card shows the accounts, the database, PHP, the web server, mail, the Salvo version, the free disk and the summary: ready to migrate, ready to migrate · N need attention or N blocks.

Compare opens the item-by-item comparison (panel, system, PHP, database, web server, mail, mail compression and search, packages, disk, DNS, IP), with Blocks, Attention, Note or OK, and the verdict: … can receive the accounts of …, with the care below or cannot yet.

2. Pair (on the destination, authorize on the source)​

  1. On the destination, the source's card › Pair: SSH port, Salvo on … (the binary's path there, /var/lib/salvo/salvo by default) and State folder there (/var/lib/salvo by default) › Generate the line › Copy the line.
  2. On the source, Send from here tab › Authorize a destination: paste the line › Authorize. (It goes into /root/.ssh/authorized_keys with restrict and from="destination IP"; a line without the IP is refused.)
  3. On the destination, Test (or Test connection in the pair's drawer): … answered through the channel.

The card turns Paired · port 22. The pair's drawer has Show the pairing line, Change, Unpair and Forget this server.

3. Request and release the account​

  1. On the destination, Migrate accounts › choose the Source server › the list of its accounts (size by the panel quota; with the mail on a mail node, its part counts only with the node paired) › the account › Check requirements. The source receives the request.
  2. On the source, Send from here tab › Account requests: Release 24 h, Release 48 h (the default) or Release 7 days; or Refuse. A release can be extended (Extend 48 h) or revoked (Revoke).
  3. On the destination, the account's row shows Waiting for release until you click Check again. With everything green, it becomes Checked and the button turns into Migrate.

The Requirements checked: account and domains free on the destination, disk, account active on the source, where the mail lives and where it arrives, databases with the account prefix, mailboxes with login, the domains' PHP, plan, reseller, feature list, where the site is, Salvo version, signs of a compromise, release on the source and on the mail node and, for DirectAdmin, the panel, the mail node and webmail and calendar. Each shows as ready, info, attention or blocks.

4. Copy and follow​

Migrate starts the initial copy. The account is created on the destination (on DirectAdmin, by DirectAdmin's own converter) and Salvo brings, at the same time:

  • the home files (over 4 SSH connections);
  • the mail, mailbox by mailbox, through the Dovecot sync (up to 2 mailboxes at a time); webmail filters come along;
  • each database (up to 2 at a time);
  • calendars and contacts; the account's cron jobs are kept aside until the cutover.

Before each mailbox or database, Salvo waits for this server's load to drop below the Load limit in Settings. At the end, the source × destination check verifies everything by itself. You can close the screen: the copy goes on in the server.

In the account's row (Bring here tab), open it to see:

  • The account's path: Release › Copy › Up to date › Cutover › Note › Done, with you are here and the Next step (what to do now and on which server).
  • The progress: the overall bar, running together now (files · 2 mailboxes · 2 databases), each item with size and speed, and the estimate with a range (ends between … and …). With no measure yet, it says no basis yet; with nothing arriving in the last minute, estimate paused. Nothing is estimated without a measure.
  • See live, See log and Stop: stopping keeps what already arrived; continuing brings only what is missing.

Details opens the migration's drawer with the Summary, Syncs (each pass, mailbox by mailbox), Verification (source × destination, item by item), Requirements and Cutover tabs. At the bottom: Bring again (All, E-mail, Files, Databases, Verify again), each part's Lag and Close (stops syncing).

The row's states: Waiting for release, Blocked, Checked, Copying, Verifying, Syncing, With pending items, Up to date (ready for cutover), Cutover scheduled, Cutting over, Under observation, Done, Failed (with Continue or Try again) and Closed.

5. The cutover​

With the account Up to date, the next step is the cutover: switch the addresses to this server and take the account off the source.

  1. On the source, in Account requests, Authorize the cutover for that account. The release must last until after the cutover.
  2. On the destination, the migration's drawer › Cutover tab › Do the cutover:
    • When: Now, At a time (default: tomorrow at 01:00) or As soon as the old TTL expires;
    • TTL during the cutover (default 300 s) and Observation window (default 7 days);
    • Write lock on the source (on), Remove the account on the source when the window ends (off), Do not wait for the propagation and Also check the propagation with Globalping.
  3. Ready? checks the channel, the version, the release and the cutover authorization; each ✗ says what to do on the source. See the zone plan shows what changes in the source's zone.
  4. Schedule the cutover (or Do the cutover now).

The steps, on the screen: lower the TTL, the last pass (with zero differences), the write lock, switch the IPs on the source, the propagation, two-way mail, suspend on the source, the observation window (mail still arriving there comes every 15 minutes) and, at the end, remove on the source. Undo the cutover goes back; if the databases changed on both sides, the screen asks which one stays.

On the command line​

destination
# the source's profile, comparison and pair
ssh root@SOURCE salvo server-profile --json | salvo server-import -
salvo server-compare --from SOURCE
salvo server-pair --host SOURCE --port 22 # shows the line to authorize there
salvo server-pair-test --host SOURCE
# its accounts, check and migrate
salvo source-accounts --from SOURCE
salvo migrate-account --from SOURCE --account account01 --check-only
salvo migrate-account --from SOURCE --account account01
salvo migrations
salvo migration-log --migration N --follow
salvo migrate-sync --migration N --part all|mail|files|databases|verify
salvo migrate-cancel --migration N # Stop
salvo migrate-close --migration N # Close
# the cutover
salvo cutover-check --migration N
salvo cutover-schedule --migration N --at 2026-11-10T01:00:00-03:00 --ttl 300 --window-hours 168
salvo cutover-show --migration N
salvo cutover-undo --migration N
source
salvo peer-authorize --line "command=…" # the line the destination generated
salvo migration-requests
salvo migration-access --id N --approve --hours 48 # or --refuse, --revoke
salvo migration-access --id N --allow-cutover
salvo peers