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 accounts between servers

Discussion in 'General Discussion' started by ricardom, Mar 14, 2004.

  1. ricardom

    ricardom Active Member

    Joined:
    Mar 10, 2004
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I got one problem, today im a reseller with WHM access only (not shell), and i got a dedicated server in Server Matrix, but i have to transfer the accounts to the new server.

    Here is my problem:

    The admin of the server the im a reseller blocked the whm transfer, so i cant do a transfer using the transfer whm tool in my new dedicated server.

    I able to use the backup tool to make a fullbackup of home dir of each account, and transfer direct to my new server, but i dont know how to restore it using some script, using my shell access.

    I know that i could use the restore tool in the cpanel of each client, but this takes to much time, as far i have to transfer the backup to my PC and do an upload using this tool.

    Does anyone know wich script cpanel use to make this restore task?

    Thanks for any help.
     
  2. BrightAdmin

    BrightAdmin Well-Known Member

    Joined:
    Feb 29, 2004
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Hi ricardom,

    Please try to follow these steps in shell to back up restore:

    1) Login to the remote machine as root

    2) execute the script /scripts/pkgacct <username>

    Note: The above step will create a cpmove-<username>.tar.gz file in the home of the machine.

    3)cd /home

    4) execute command

    scp -Cp cpmove-<username>.tar.gz root@your ip address:/home

    Note: The above step will copy the cpmove tar file to your machine on which you need to setup the account

    5) now login to the machine on which you need to setup the account

    login as root

    6) execute the script

    /scripts/restorepkg <username >(this is script to restore)

    This will resolve your issue.

    Regards,

    Bright:)
     
  3. Dacsoft

    Dacsoft Well-Known Member

    Joined:
    Aug 30, 2003
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Melbourne, Florida
    He doesn't have root on both machines.
     
  4. botic

    botic Active Member

    Joined:
    Jun 12, 2004
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    1
    Password

    remote server doesn't ask the login+ password when receiving the file?
     
Loading...

Share This Page