This interface copies multiple accounts from a remote server to your cPanel & WHM server. To transfer accounts, you must obtain the following:
- SSH access to the remote server.
root
-level privileges with thesu
orsudo
commands.
Notes:
- The Transfer Tool feature requires MySQL® or a MySQL-compatible database (for example, Percona or MariaDB) on the target server to function properly.
- 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 (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 version 11.46 and later does not support FrontPage, and the restoration process does not restore FrontPage-specific files and directories.
Warning:
- The transfer system uses multiple applications, such as MySQL. Do not shut down or restart any processes on either server during the transfer and restoration process.
- The Transfer Tool feature does not transfer DNS zone templates. If custom DNS zone templates exist on the source server, the system ignores these zone templates when it recreates the account on the destination server. For more information, read the The transfer processsection below.
Important note about account transfers from Plesk
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.
How to transfer and restore multiple accounts
Remote server information
This section of the Transfer Tool interface allows you to specify information about the server from which to transfer accounts.
- 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.
- IP address example —
-
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:
-
Select whether to log in as the
root
user or with a specific username.Note:
If the
PermitRootLogin
value isno
in thesshd_config
file on the remote server, you must log in as a user other than theroot
user and then escalate to theroot
user. - If you selected User under 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.
- Use the Authentication Method menu to specify whether to use a password or an SSH public key 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 to use during authentication. Make certain that you installed the appropriate key in WHM'sManage root's SSH Keys interface (Home >> Security >> Manage root's SSH Keys).
Note:
If you encrypted your account's SSH public key, enter the SSH Key Passphrase.
- 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.
- If you select su for the Root Escalation Method, enter the
Security
In this section of the Transfer Tool interface, select whether to use the Restricted Restore feature or copy reseller privileges.
Notes:
Advanced
In this section of the Transfer Tool interface, select advanced options for the transfer. Click Show to display the list of options.
To select the advanced options, perform the following steps:
- From the Remote Server Type menu, select the web control panel that the remote server runs. Choose from the following options:
- Auto Detect
- cPanel & WHM
- DirectAdmin
- Ensim (Parallels Pro)
- Plesk
-
Select Unencrypted to use an unencrypted session to transfer the files.
- Select Compressed Transfers to compress the files before the remote server transfers the files.
-
Select Low Priority to use less CPU and input/output (I/O) on the remote server.
Note:
This option reduces the impact on performance on the remote server, but increases the duration of the transfer session.
-
Select Use Incremental Backups speed-up to decrease the amount of time that the system uses to package the account on the source server. If a daily incremental backup exists, WHM uses that backup as a starting point. The system then updates the package before transfer.
-
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 option, 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.
- The
- Enter the number of transfer threads to use in the Number of Transfer Threads text box.
- Enter the number of restore threads to use in the Number of Restore Threads text box.
Fetch account list
After you make your selections, click Fetch Account List. A new interface will appear.
The Account List interface
The top of the Account List interface displays the hosting software and version of the remote server. If this information is incorrect, click Reanalyze Remote Server.
Below the remote server information, the interface displays whether there are no available IP addresses.
Warning:
If no available IP addresses exist on the target server, accounts on the remote server with a dedicated IP address on the remote server do nottransfer.
Configurations
In this section of the Account List interface, select the configurations on the source server that you wish to copy over to a destination server. You can select multiple configurations to transfer.
To select your desired configurations, perform the following steps:
- Click Show next to Configurations to reveal all of the available configurations on your server. The Configuration Name and Analysis columns display the available configurations and versions.
-
Select the configurations that you wish to transfer to your local server.
Note:
The system displays any error messages in yellow and warning messages in red text.
-
Click Copy.
Notes:
- The Transfer column displays the status of all configurations from the source server.
- The Restore column displays the status of all configurations to the destination server.
- The system displays any error messages in yellow and warning messages in red text.
The summary bar displays the transferred or restored configurations.
CentOS 5 Migrations
Important:
On March 31, 2017, Red Hat® will deprecate all CentOS 5 systems. cPanel, Inc. will no longer provide maintenance and security updates for CentOS 5 systems. The Service Transfer Tool assists you in your migration from CentOS 5 systems to a higher version of CentOS. We recommend that you migrate to a CentOS 7 server.
- Contact your hosting provider and acquire a CentOS 7 server which to migrate to.
- Read our Getting Started Wizard documentation before you continue.
- Log in to WHM as the
root
user and click Transfer Tool from the navigation bar on the left. -
Follow the steps in the Configurations section.
Note:
We recommend that you migrate your accounts and configurations separately. Migrate your configurations first.
-
Verify that your server operates as expected. For more information on one method to do this, read our Service Manager documentation.
-
Migrate your desired accounts with the Transfer Tool.
Packages
In this section of the Account List interface, select the packages on the remote server to copy to your local server.
How to copy packages
Note:
The Transfer Tool feature transfers features lists for the packages that you select.
To copy a package, perform the following steps:
- Select the packages to copy in the table under the Packages heading.
- Select the checkbox in the table header to select all of the packages from the remote server.
- Use the Search text box to filter the list of packages.
- Use the navigation controls to page through the list of packages.
- Click a column header to sort the packages by that column .
-
Click Copy.
Warning:
- The restore system attempts to extract the package information from the
cpmove
file. If the package does not already exist on the target system, the system creates the package and assigns it to the account. If the system cannot create the package, the system assigns the default package to the account. - If the feature list for the account exists on the target system, the system assigns it to the account. If the feature list does not exist, the system assigns the default feature list to the account.
Accounts
In this section of the Account List interface, search for and select accounts to transfer to your local server.
How to copy accounts
Note:
To toggle an option for all accounts, select the checkbox at the top of the appropriate column in the table header.
To copy accounts, perform the following steps:
- Select the accounts to copy in the table under the Accounts heading.
- To copy all of the accounts on the remote server, select the checkbox at the top of the column in the table header.
- Use the Search text box to filter the list of accounts.
- Use the navigation controls to page through the list of packages.
- Click a column header to sort the accounts by that column.
-
Specify the copied account's new username and enter the new username in the User text box.
Note:
The User text boxes use the following colors as warning indicators:
- Red indicates that the username exists on this server, and the account fails to copy if you do not change the username or selectOverwrite.
- Yellow indicates that the account has a dedicated IP address on the remote server.
- Green indicates that the account does not already exist.
-
Select the accounts to which the system will assign dedicated IP addresses under the Dedicated IP Address heading.
Warning:
The interface does not allow you to assign more dedicated IP addresses than the number of available IP addresses on your server. If you select an account with a dedicated IP address on the remote server but an available IP address does not exist on your server, the transfer fails. - Select the accounts that will transfer their home directories under the Copy Home Directory heading.
- Use the Filter text box to filter the list of accounts by the Domain, User, or Reseller columns.
-
Select the accounts that will retain their reseller privileges under the Copy Reseller Privileges heading.
Note:
This option is not available if you selected the Restricted Restore feature in the Security section of the previous interface.
- Select the accounts that will transfer their account databases under the Copy Databases heading.
-
Select the accounts that will transfer their bandwidth data under the Copy Bandwidth Data heading.
Warning:
If you transfer an account from cPanel & WHM version 11.50 to an earlier version, the account loses its bandwidth data.
-
Select accounts for express transfer under the Express transfer heading.
Note:
For more information, read the Express transfer section of this document.
- If an account exists on the server, the Overwrite Account column displays a checkbox that allows you to transfer the account and overwrite all the data in the account.
- Click Copy.
After you click Copy, the Account Transfer interface will appear.
The transfer process
Notes:
- In the steps below,
domain
represents the name of a domain that you transferred. - The system considers any two records with the same resource name and type to be duplicates.
When you use the Transfer Tool interface to transfer accounts, the system performs the following actions:
- The system creates the account.
-
The system compares the DNS zone file from the account's backup file with the template-generated zone file that the system generated during account creation.
Important:
The Transfer Tool feature does not transfer DNS zone templates. If custom DNS zone templates exist on the source server, the system ignores these zone templates when it recreates the account on the destination server.
- The system updates the SOA record to match the target server's zone templates and comments out the existing SOA record from the source server.
- The system updates
domain
NS records to match the target server's zone templates and comments out any duplicatedomain
NS records from the source server. -
The system updates ftp.domain A, AAAA, and CNAME records to match the target server's DNS templates and comments out any identical
ftp.domain
records from the source server.Note:
cPanel & WHM uses the IP address in the destination server's
virtual-ftp
zone template (usually, the server's main IP address) for virtual FTP when the account exists on a shared IP address. -
The system checks whether the template-generated zone file uses an MX preference of
0
, and then performs the following actions:-
If the zone file's MX preference is
0
and the zone file is$PRIMARY_DOMAIN
mail.$PRIMARY_DOMAIN
- If the zone file's MX preference is
0
and the zone file is not$PRIMARY_DOMAIN
ormail.$PRIMARY_DOMAIN
(a non-standard mail configuration), the system merges the generated templates and comments out templates from the source server. -
For example, when the zone template's MX record defines an external mail service, the system prefers that entry over the record in the backup.
-
-
The system comments out duplicate records.
- The system comments out CNAME records that conflict with any other records. If two or more CNAME records conflict, the system comments out all but the first CNAME record.
- The system increments the SOA serial number for the domain.
- The system updates records that reference the old IP address to use the account's new IP address.
- The system removes comments that are older than 30 days.
- The system updates CalDAV and CardDAV records to match the target server's DNS template.
- If the zone file contains an
$ORIGIN
directive for an additional domain, the system will not update that additional domain's records.
Express transfers
An express transfer performs the following actions on the remote server:
- Updates the account's A record to point to the destination server.
- Whenever appropriate, changes the domain's nameserver entry to point to the destination server.
- Updates the email routing configuration, so that mail arrives at the destination server.
-
Adds a redirect for the Account Moved page (
cgi-sys/movingpage.cgi
) for the following file extensions:1234567891011.dynamiccontent
.pl
.plx
.perl
.cgi
.php
.php4
.php5
.php6
.php3
.shmtl
- Suspends the transferred accounts on the source server. For more information, read our What Happens When You Suspend an Accountdocumentation.
The system performs changes on the source server in the /usr/local/cpanel/scripts/xferpoint
directory.