Skip to content

Single-account Live Transfer with whmapi1 start_remote_user_transfer

How to move one cPanel account between WHM servers with Live Transfers, keeping the source serving until DNS catches up, without forcing a maintenance window.

A Live Transfer is the right tool when one account out of fifty needs to move now, the customer cannot accept a maintenance window, and the rest of the server stays where it is. The mechanism uses whmapi1 start_remote_user_transfer to pull the account from the source, marks the source’s copy as “moved”, and proxies any leftover traffic to the destination until DNS catches up. Done right, the user notices nothing.

What’s happening

A classic transfer copies and stops. A Live Transfer keeps the source serving as a proxy after the move so a stale DNS answer still reaches the account on the destination. It depends on root-level WHM API trust between the two servers and on the source having the bandwidth headroom to proxy until TTLs expire. It is not a substitute for lowering DNS TTLs in advance — it is a buffer against the DNS-cache long tail.

How to verify

On the destination, pre-flight the trust and resources:

whmapi1 verify_api_token
whmapi1 list_remote_user_transfers
whmapi1 get_disk_usage

Start the transfer with the live flag:

whmapi1 start_remote_user_transfer \
  user=acmecorp \
  remoteserver=cpanel-old.example.com \
  remoteuser=root \
  liveflag=1

Track progress:

whmapi1 transfer_session_status transfer_session_id=<id>
tail -f /var/cpanel/logs/transfer_<id>/<session>.log

When the session reports STATE_COMPLETED, the destination is authoritative and the source is in proxy mode for that account.

The fix

  1. Lower the zone’s TTL to 300 seconds 24–48 hours before the move so the proxy window stays short.
  2. Run start_remote_user_transfer with liveflag=1. Validate by hitting the destination IP directly via curl --resolve example.com:443:<dest-ip> and confirming the site serves.
  3. Flip the A and AAAA records to the destination IP. Watch /var/cpanel/logs/transfer_<id>/ for proxy hits dropping toward zero.
  4. After 24 hours of zero proxy traffic, log into WHM on the source and finalize: the account is purged and the proxy stops. Do not finalize earlier — late DNS resolvers will see a hard failure.

If the account has CSF, ConfigServer, or custom Exim filters, copy those before finalizing — Live Transfer carries the account, not the host-level customizations. Stack Harbor runs these single-account moves under migration solutions — start a conversation if cutover timing is tight.