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 very big cpanel account to another server

Discussion in 'General Discussion' started by josesan311, Aug 9, 2008.

  1. josesan311

    josesan311 Active Member

    Joined:
    Oct 29, 2007
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hello Guys,

    Im looking to transfer a 350GB cPanel account, the problem is i dont have enough space on my partition to make the cpanel backup. So pkgacct does not work for me.
    How can i transfer this account without problems? Im getting no space on disk.
    Is there any way to do a pkgacct on another partition?
    Any help will be appreciated !

    Thank you in advance!
     
  2. Freezer

    Freezer Well-Known Member

    Joined:
    Jun 13, 2005
    Messages:
    120
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Den Haag
    Can't you compres the data folder yourself on another partition, and move it out of the account? And transfer the "small part" of the account through cpanel, and the backup of the data that you have compressed you can put yourself back on your new server?
     
  3. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello,

    1.First create new account on other server with username "username".Remember the FTP address, username ('username', in this example), and account password. We will need these for later.
    2.Login to old cpanel >> backup >> generate backup >> backup destination >> remote FTP server >> Email Address to receive backup confirmation followed by all of the FTP account information for "username", which we created on the new server.
    -Remote Server: new server's address
    -Remote User: username (same username as of old server)
    -Remote Password: username's password
    -Port: 21
    Then, click "Generate Backup". This may take some time to backup the files, depending on how large the account is. You should receive an email provided in the above info once it is complete.
    3.After backup completed,login to new server via ssh

    cd /home/username/public_html
    cp cpmove.username.tar.gz /home
    then
    /scripts/restorepkg username

    thats it.Your account is transferred to new server.Correct DNS for it.
     
    #3 big_bull, Aug 9, 2008
    Last edited: Aug 9, 2008
  4. atlasglobal

    atlasglobal Registered

    Joined:
    May 17, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    There is another way . . .

    As long as you have space available (and it shouldn't take much depending on the size of the accounts databases and email accounts), you can do this:

    /scripts/pkgacct --skiphomedir username

    This will backup the cpanel account settings, email, mysql dbs, etc, etc - and create an archive at /home/cpmove-username.tar.gz (as the --skiphomedir option suggests, this leaves out all files under /home/username)

    Then copy the /home/cpmove-username.tar.gz file to the new server, and run (on the new server) /scripts/restorepkg username

    Once that finishes, you need only to use rsync, scp or similar to copy over all the files under /home/username/ to /home/username on the new server & update the DNS.

    This seems to be the most efficient way to transfer large (5 GB +) accounts to another server. And it is MUCH faster than doing it via WHM.

    Not really sure why the stock cPanel transfer script doesn't offer this method, as it seems to me to be much more efficient than creating a 50 piece split tarball, copying, recombining, etc, etc, etc.
     
  5. viewdm

    viewdm Registered

    Joined:
    Mar 12, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    rsync with noshell?

    The --skiphomedir option works great - I have written a script which does a du on the home directory, determines the size and will do a full pkgacct if < 1 GB, otherwise, it will use the --skiphomedir option.

    My script then will scp the package file over and restore via ssh.

    To automate the rsync for the > 1 GB accounts, I am using a command like:
    rsync --progress -az -e "ssh -i /home/rsync_admin/.ssh/id_dsa -l accoffic" ./ acct_name@web2.myserver.com:/home/acct_name/

    I have a copy of "rsync_admin"'s ssh key set up in /home/acct_name/.ssh
    but the noshell is preventing rsync from running. If I enable shell access for "acct_name", it works fine.

    with noshell enabled, I get : protocol version mismatch - is your shell clean?
     
  6. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    You could also use 11.24.1 in EDGE as it supports streaming the home dir.
     
  7. canfone

    canfone Active Member

    Joined:
    Aug 15, 2003
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Montreal
    Copy of script

    Hi viewdm,

    Could you please post a link to your script for running a du and doing the scp of an account.

    We are particularily interested in adapting this into our backups as we have some users with 15GB home directories and have difficulties backing up their data on a regular basis.

    The --skiphomedir option is great to know about :)
     
Loading...

Share This Page