Havri

Well-Known Member
Oct 28, 2013
86
19
8
cPanel Access Level
Root Administrator
Hello,

I would like to know if it's possible to transfer accounts using the command line. What I want to achieve is the exact same behavior as Transfer Tool from WHM after selecting the account/accounts but through the command line. Are there specific commands for the xfertool and xferpoint for this?

From what I know, the alternative steps could be something like:

1. Use this command to make an archive of the user
Code:
/scripts/pkgacct
2. Move archive to new server using SCP or anything else that does the job.
3. Use this command to restore the archive of user.
Code:
/scripts/restorepkg
4. Suspend account on the old server
Code:
/scripts/suspendacct
Please let me know if there are some steps that I've missed.

As mentioned, I would like it if it can be achieved using the xfertool and xferpoint tools directly, as these are used in the Transfer Tool through the WHM interface.


Thank you.
 

Eminds

Well-Known Member
Nov 10, 2016
319
32
28
India
cPanel Access Level
Root Administrator
Yes , you can easily migrate the accounts from cpanel to cpanel using the steps that you have mentioned. You need root access to perform the steps. However as you already have easy to use Transfer Tool why you dont want to use it ?
 

Havri

Well-Known Member
Oct 28, 2013
86
19
8
cPanel Access Level
Root Administrator
Hello,

Yes, I could use that, although I have some questions about that. For example, do I only need to put the user in /etc/sudoers like so or does it require anything else?

Code:
mysuperuserreseller      ALL = (ALL)     ALL
Does it require that I enable Normal Shell or Jailed Shell for that user? From what I read, the user also has to be a reseller with the "All Features (Warning: total and complete access)" enabled in WHM -> Edit Reseller Nameservers and Privileges.

Also, does the "Root Escalation Method:" have to be "sudo" in the Transfer Tool?

Are there other settings that need to be tweaked for this to work?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463