cPanel WHMLinux

How to Copy account from a Server to another from CPanel WHM

Let us see how to copy a whole account from one server to the  another server via cpanel WHM in details.
To copy account from another server in CPanel WHM,
Go to Main >> Transfers >> Copy an account from another server
To complete this process, you will have to go thoruh the following options:

 

 

Remote Server Information

Specify the Remote Server Type. From the pull-down menu, select the web control panel that the remote server is running.
You have the following options:
  • WHM/cPanel
  • WebPanel
  • Plesk
  • Zer*ex's dXm'
  • En*im
  • Alab*nza
  • CIH*st/Spectr*
  • DA
  • Sp*era
  1. Specify the Remote Server Address. This value can be in the form of an IP address or a Fully Qualified Domain Name (FQDN).
    • FQDN example — host.example.com
      • Note: In this case, the FQDN will not require the trailing dot.
    • IP address example — 127.0.0.1
  2. Specify the Remote SSH port you wish to use — by default, SSH runs on port 22.
  3. If you wish, click the Check SSH Connection button to test your ability to connect to the remote server.
  4. If you wish, you may choose to leave the transfer uncompressed by selecting the Don't Compress Transfer checkbox.
  5. Selecting the Use SSL checkbox will encrypt the information during transfer.
  6. Selecting the Allow Override checkbox allows you to override the usual transfer process in favor of a customized script. The custom script must reside in /var/cpanel/lib/Whostmgr/Pkgacct on the server to which the account will be copied (local machine).
  7. Selecting Skip homedir allows you to avoid transferring the account's home directory. This lets you to speed up the transfer process by skipping the normal transfer protocol for the user's home directory in favor of using a faster technique, such as rsync.

Account Info

This section allows you to specify information about which account should be copied. To complete this process, you will need to:

  1. Specify the Username to Copy. Type the account's username for the remote server in this field.
  2. Specify the Local Username. Type the account's username that will be used locally.
  3. Selecting the Give New Account an IP Address checkbox will assign the new account a dedicated IP address.
  4. Selecting the Skip Copying Reseller Privileges checkbox allows you to specify the privileges the account will have after the transfer has finished.
  5. Selecting the Change DNS on Source Server to Point to Local Server checkbox will update your local DNS configuration with the new account's DNS information. This will cause your local DNS configuration to function as the account's root-level DNS server(s).

 

Authentication

This section allows you to specify login information for the remote server. To complete this process, you must:

 

  1. Specify the Login method. You are able to specify the username and password for the account you wish to transfer, or log into the remote server as the root user.
    • If you select Root, you will simply need to enter the root password in the Password field.
    • If you select User, you will need to:
      1. Specify the remote account's Username in the appropriate field.
      2. Specify the remote account's Password in the appropriate field.
  2. Select the Authentication Method you wish to use. Here, you must specify whether you will be using a password or a public key to authenticate to the remote server.
    • If you choose Password, the password you entered under the Username field will suffice.
      • When you select this option, you will also need to specify a Root Escalation Method. You will need root level privileges to transfer the account.
        • Selecting su will require the root user's password.
        • Selecting sudo will require that the user be included in the remote machine's sudoers file.
    • If you choose Public Key, you will need to select the key you wish to use during authentication. You will need to be sure the appropriate key has been installed at the Main >> Security >> Manage SSH Keys interface.
      • If necessary, you will need to enter the SSH Key Password. This password should correspond to the key you are using for authentication.
      • When you select this option, you will not need to select a Root Escalation Method. Simply continue filling out the form.
  3. Select the Use FTP to Transfer checkbox if you would like to use FTP to complete the transfer.
  4. When you have finished making your selections, click the Transfer Account button.

Important note about transferring accounts from Plesk

If you plan to transfer accounts from Plesk, you should first change any forwarding domains to physical hosting accounts.
You can do so by running the following command as root from the command line:
root@server[#]./domain --update example.com -hst_type phys -login "example" -hosting true -ip 127.0.0.1 -passwd "examplepass"
In this example: 

  • example.com stands for the forwarding domain.
  • "example" stands for the new account's username.
  • 127.0.0.1 stands for the new account's IP address.
  • "examplepass" stands for the new account's password.
If any feedback, queries are always welcome!

Abhijit Sandhan

Love to Automate, Blog, Travel, Hike & spread Knowledge!

Related Articles

5 Comments

  1. Pretty nice post. I became aware of your blog page and wished to state that I've quite enjoyed reading your blog articles.

  2. Thank you for the auspicious writeup. It in fact was a amusement account it. Look advanced to far added agreeable from you! By the way, how can we communicate?|

Leave a Reply to Nilkanth Shet Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button