The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Xfertool command line

Discussion in 'Data Protection' started by Havri, Mar 21, 2017.

Tags:
  1. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    53
    Likes Received:
    11
    Trophy Points:
    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.
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    175
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    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 ?
     
  3. Havri

    Havri Well-Known Member

    Joined:
    Oct 28, 2013
    Messages:
    53
    Likes Received:
    11
    Trophy Points:
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page