Transfer Tool  Print this Article

Overview:

This interface copies multiple accounts from a remote server to your cPanel & WHM server. To transfer accounts, you must obtain the following:

  • root-level privileges with the su or sudo commands.
Warning:
  • Do not shut down or restart any processes on either server during the transfer and restoration process.

  • Do not start a transfer during a system update (upcp) or start a system update during a transfer. The system update will fail.

  • When the Transfer Tool feature transfers zone files within the same DNS cluster, it overwrites the target server’s existing zone files. The Transfer Tool feature replaces these files with the source server’s zone files when the following conditions are true:

    • The target server resides in the same Domain Name System (DNS) cluster as the source server.

    • The source server uses the Synchronized Changes DNS role.

    For more information about DNS clusters, read our DNS Cluster documentation.

  • The Transfer Tool feature does not transfer the DNS zone templates. If custom DNS zone templates exist on the remote server, the system ignores these zone templates when it recreates the account on the destination server. For more information, read the transfer process section below.

  • You must remove Domain Server (DS) records from the domain registrar before you transfer a domain that uses DNSSEC. After you transfer the domain, you need to re-add the DS records to the registrar for the domain. For more information about the process, read the DNSSEC key transfer section of our DNSSEC documentation.

  • Account transfers process AAAA records differently than A records.

  • The target server will not alter AAAA records that point to servers other than the source server or servers related to the source.

  • A target server without IPv6 enabled will strip locally-managed AAAA records that pointed to the source server.

  • A target server with IPv6 enabled will point any source-related AAAA record to the account’s shared IPv6 address in the domain’s locally-managed zone file.

  • In cPanel & WHM version 70 and later, the server disregards the Restrict document roots to public_html Tweak Setting setting during server transfers. The transfer tool retains any pre-transfer public_html/ directory structures, even those that place addon and subdomains document roots outside of the primary website’s document root. However, after the transfer, addon and subdomains that the restored user creates will adhere to this setting.

  • Do not use the skip-name-resolve setting in your server’s MySQL® configuration. This setting can cause problems on any server. It will create more problems on remote MySQL servers during account transfers.

  • The source and target servers must be able to communicate over port 2087 to use this feature. For more information about the ports that cPanel & WHM uses, read our How to Configure Your Firewall for cPanel & WHM Services documentation.

  • Due to networking requirements, you cannot run an IPv6-only cPanel & WHM server. You must have at least one IPv4 address.

Note:
  • If you experience problems with session timeouts, increase the number of seconds in the Number of seconds an SSH connection related to an account transfer may be inactive before timing out setting in the System section of WHM’s Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).

  • If one of the accounts that you wish to transfer uses Microsoft® FrontPage® on the remote server, we strongly recommend that you disable FrontPage for that account before you attempt to transfer the account. cPanel & WHM versions 11.46 and later do not support FrontPage, and the restoration process does not restore FrontPage-specific files and directories.

  • If you only possess user credentials and do not have root access or privileges, use WHM’s Transfer or Restore a cPanel Account interface (WHM >> Home >> Transfers >> Transfer or Restore a cPanel Account).

Important notes about account transfers from Plesk

The system will not transfer any email addresses from Plesk to cPanel & WHM that contain a plus sign (+) in the email username. The system will also not transfer any FTP accounts that contain an underscore (_) in the username.

To transfer accounts from Plesk, first change any forwarded domains to physical hosting accounts. To do this, run the following command as the root user:

/usr/local/psa/bin/domain --update example.com -hst_type phys -login "example" -hosting true -ip 127.0.0.1 -passwd "12345luggage"

 

  • example.com represents the forwarding domain.

  • example represents the new account’s username.

  • 127.0.0.1 represents the new account’s IP address.

  • 12345luggage represents the new account’s password.

If you need to convert several forwarding domains into hosting accounts, open a support ticket and our migration team will contact you.

IP address transfers

To transfer IP addresses from one server to another, use WHM’s IP Migration Wizard IP Migration Wizard interface (WHM >> Home >> IP Functions >> IP Migration Wizard).

If the IP address is the server’s main IP address, you must also update your cPanel license’s IP address. You can update your license’s IP address through Manage2, if you use it, or through the cPanel Store.

Important:

You can only transfer a cPanel license to an IP address that does not already possess a cPanel license.

Transfer via Manage2

If you purchased your license via Manage2, perform the steps in our Transfer a License documentation.

Transfer via cPanel Store

If you purchased your license directly from cPanel, L.L.C., perform the following steps:

  1. Log in to your cPanel Store account.

  2. Click My Account. The My Account interface will appear.

  3. Under Orders/Licenses, click View my licenses. The Manage Licenses interface will appear.

  4. Select the checkbox for the license that you wish to transfer.

  5. Click Edit IP. The Change IP Address dialog box will appear.

  6. Enter the license’s new IP address in the New IP Address text box.

  7. Click Save Changes.

If you experience any issues with the transfer, open a support ticket.

How to transfer and restore multiple accounts

Remote server information

This section of the Transfer Tool interface allows you to specify information about the remote server (the server from which to transfer accounts).

  1. In the Remote Server Address text box, enter an IP address or a Fully Qualified Domain Name (FQDN).

    • IP address example — 127.0.0.1

    • FQDN example — host.example.com

      Note:
      In this case, the FQDN does not require the trailing dot.

       

  2. In the Remote SSH port text box, specify the port to use.

    Note:

    The default value for SSH is port 22.

     

Authentication

In this section of the Transfer Tool interface, specify the authentication method with which to log in to the remote server.

To specify an authentication method, perform the following steps:

  1. Select whether to log in as the root user or with a specific username.

    Note:

    If the PermitRootLogin value equals no in the sshd_config file on the remote server, you must log in as a user other than the root user and then escalate to the root user.

     

  2. If you selected User for Login, perform the following actions:

    • Enter the remote account’s username in the Username text box.
    • Enter the remote account’s password in the Password text box.
  3. Use the Authentication Method menu to specify whether to use a password or an SSH key pair to authenticate to the remote server.

    • If you select Password, enter the password for the account in the Password text box.

    • If you select SSH Public Key, select the key pair to use during authentication. Make certain that you installed the appropriate key pair in WHM’s Manage root’s SSH Keys interface (WHM >> Home >> Security Center >> Manage root’s SSH Keys).

      Note:
      • If you encrypted your account’s SSH key pair, enter the SSH Key Passphrase.
      • If you’re experiencing firewall issues, use the Password method instead.

       

  4. Optionally:

    • If you select User under Login, select a root escalation method under the Root Escalation Method heading.

    • If you select su for the Root Escalation Method, enter the root password in the Root Password text box.

    • To bypass TLS verification, select the I understand the risks. Connect anyway. checkbox and then click Continue.

      Warning:

      We strongly recommend that you do not use this option. Only use this option if you can confirm the identity of the source server.

       

Security

In this section of the Transfer Tool interface, select whether to use the Restricted Restore feature or copy reseller privileges.

Note:

The Restricted Restore feature performs additional security checks on the backup file in order to mitigate the risk of transfers from unfamiliar sources. An issue may exist with a component of the backup file (for example, a compromised MySQL grant table or a symbolic link attack). If such an issue exists, the system will not restore that portion of the backup and will add a warning to the log file.

  • The Restricted Restore feature is Experimental. Do not consider it an effective security control at this time. The behavior of this feature may change in a future release of cPanel & WHM. Exercise extreme caution when you use this feature.

  • If you do not trust the source of the account backup with root access to your server, use the Restricted Restore feature to protect your server.

  • If you wish to use the Restricted Restore feature to restore an account that owns PostgreSQL® databases, the target server must use PostgreSQL version 8.4 or newer.

  • The Restricted Restore feature will not restore parked (aliased) or addon domains.

  • The Restricted Restore feature will not transfer reseller privileges. If you wish to add reseller privileges to a transfered account, use WHM’s Reseller Center interface (WHM >> Home >> Resellers >> Reseller Center).

  • The Restricted Restore feature only allows restored accounts to use noshell or jailshell. If the restored account uses another shell, the system sets the account to use noshell. For more information, read our VirtFS (Jailed Shell) documentation.

Advanced

This section of the Transfer Tool interface provides advanced settings for the transfer. Click Show to display the list of settings.

To select the advanced settings, perform the following steps:

  1. From the Remote Server Type menu, select the web control panel that the remote server runs. Choose from the following settings:

    • Auto Detect

    • cPanel & WHM

    • DirectAdmin

    • Ensim (Parallels Pro)

    • Plesk

  2. Select Unencrypted to use an unencrypted session to transfer the files.

  3. Select Compressed Transfers to compress the files during the rsync process when the remote server transfers the files between the remote and destination servers.

    Note:

    This setting does not affect the package account function, which creates a gzip archive of the user’s account on the remote server.

     

  4. Select Low Priority to use less CPU and input/output (I/O) on the remote server.

    Note:

    This setting reduces the impact on performance on the remote server, but increases the duration of the transfer session.

     

  5. Select Use Incremental Backups speed-up to decrease the amount of time that the system uses to package the account on the remote server. If a daily incremental backup exists, WHM uses that backup as a starting point. The system then updates the package before transfer.

  6. Select Use custom account packaging modules from /var/cpanel/lib/Whostmgr/Pkgacct to use packaging scripts in that directory.

    Important:

    The system does not create the /var/cpanel/lib/Whostmgr/Pkgacct directory by default. You must create the /var/cpanel/lib/Whostmgr/Pkgacct directory before you select this setting, if the directory does not already exist.

    Note:

    cPanel & WHM always prioritizes custom restore modules in the /var/cpanel/perl/Whostmgr/Transfers/Systems directory over the cPanel-provided modules in the /usr/local/cpanel/Whostmgr/Transfers/Systems directory.

    • The /var/cpanel/perl/Whostmgr/Transfers/Systems directory stores any custom modules that you create.

    • The /usr/local/cpanel/Whostmgr/Transfers/Systems directory stores the modules that ship with cPanel & WHM.

     

  7. Specify the number of CPU processes (threads) for the transfer session in the Number of Transfer Threads text box.

    Note:

    This setting defaults to a number of processes (threads) based on the available amount of memory and number of CPUs. You can specify a maximum value of five, but the system may still automatically reduce that number based on available resources.

     

  8. Specify the number of CPU processes (threads) for the restore session in the Number of Restore Threads text box.

    Note:

    This setting defaults to a number of processes (threads) based on the available amount of memory and number of CPUs. You can specify a maximum value of five, but the system may still automatically reduce that number based on available resources.

     

  9. Enter the number of seconds that the transfer session remains open before it times out in the Transfer Session Timeout text box.

    Important:

    If you change the default in the Transfer Session Timeout text box, it will only apply to the current session. You must enter a new value each time that you run a transfer. You can permanently change the value in WHM’s Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).

     

  10. After you make your selections, click Scan Remote Server. A new interface will appear.

The Account List interface

The top of the Account List interface displays information about the source server. If any of this information appears incorrect, click Rescan Source Server.

Below the source server information, the interface displays if any available IP addresses exist.

Warning:

If no available IP addresses exist on the target server, accounts on the source server that use a dedicated IP address will not transfer.

Accounts

This tab allows you to transfer cPanel accounts to this server.

How to copy accounts

To copy accounts, perform the following steps:

  1. Select the checkbox for each cPanel account that you wish to transfer.

    • To copy all of the accounts that the interface currently displays, select the checkbox at the top of the column in the table header.

    • Use the Search text box to filter the list of accounts.

    • Click a column header to sort the accounts by that column.

  2. By default, the system adopts the username from the source server. To specify a new username, enter the new username in the User text box.

    Note:

    The User text boxes display the following colors as warning indicators:

    • A red highlight indicates that the username or domain already exists on this server. The account will fail to transfer if you do not change the username, select Overwrite, or select Overwrite with delete. You cannot transfer an account that uses the same domain.

    • A green checkmark (checkmark) indicates that the account does not already exist.

     

  3. Select the accounts to which the system will assign dedicated IP addresses under the Dedicated IP Address heading. The interface will select the Dedicated IP checkbox for accounts that currently use a dedicated IP address.

    Warning:

    You can only assign available dedicated IP addresses from your server. If your server doesn’t have the required number of available IP addresses, the transfer will fail.

     

  4. Click Default to show the What to Transfer section. The following settings will appear:

    • Home Directory — Transfer the account’s home directory.

      Note:

      When you transfer the home directory, the system checks whether it can run the rsync command. If the system does not find an error, it will rsync the home directory when the system completes the transfer.

       

    • Reseller Privileges — Retain the account’s reseller privileges.

    • Databases — Transfer the account’s databases.

    • Bandwidth Data — Transfer the account’s bandwidth data.

  5. Click Default to show the Live Transfer section.

    Note:
    • For more information, read the Live transfer section below.

    • If your source server uses cPanel & WHM version 88 or earlier, you will see the Express Transfer setting instead.

     

  6. If your server uses a linked node, click Default to show the Linked Node Options section. The following settings will appear:

    • Use only this server. Transfer or restore locally. — Transfer the account to the local server.

    • Use the cPanel account’s package configuration. — Attempt to use the source account’s currently linked node. If that fails, or if the account does not use a linked node, the system will restore the account to the local server.

    • The alias and hostname of an existing cPanel & WHM server node. For example, mailserver (mailnode.example.com). — Transfer the account’s mail services to the selected linked node.

  7. Click Apply to save the What to Transfer and Linked Node Options settings for this account. You can click Apply to other selected accounts to apply these settings to all currently selected accounts. To apply the default settings for this account, click 

Was this answer helpful?

Related Articles

Account Restore
Overview: The Account Restore interface displays the status and progress of your account...
Account Transfer
Overview: The Account Transfer interface displays the status and progress of your account...
Convert Addon Domain to Account
Overview: This interface allows you to convert an existing addon domain into a full cPanel...
Copy an Account from Another Server with Account Password
Overview: Warning: We removed this interface in cPanel & WHM version 90. Use WHM’s...
Review Transfers and Restores
Overview: This interface allows you to review your server’s transfer and restore logs. Transfer...