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.

Transfer account from command line

Discussion in 'General Discussion' started by akox, Mar 31, 2005.

  1. akox

    akox Member

    Joined:
    Mar 20, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hello ppl,

    I would like to ask if there is a way to transfer an account (or many accounts) from another host through command line (bash/tcsh/whatever).

    To be more specific, I want to do "Copy an account from another server with account password" from command line, so that I can transfer multiple accounts in one time (using a custom script), using something like this:
    # xxxxxxxx sourcehost sourcedomain sourceuser sourcepassword

    The reason to do such a thing is that I don't have root access to the "source" host, and so I cannot transfer multiple accounts in one time using the Web interface.

    Thank you in advance.
     
  2. akox

    akox Member

    Joined:
    Mar 20, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    found it ?

    Hello again,

    I think i found it!

    /scripts/getremotecpmove hostname username domainname 1
    (give user's password in STDIN and press enter)
    then run
    /scripts/restorepkg username
    and finally
    /scripts/chpass username password

    that's it :)

    bye
     
    #2 akox, Mar 31, 2005
    Last edited: Mar 31, 2005
  3. thehostinghut

    thehostinghut Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    232
    Likes Received:
    0
    Trophy Points:
    16
    How was you able to do more than one at a time...
    And at what point do you tell it the password? You can PM me if you want.

    Thanks,

    Tracy
     
Loading...

Share This Page