transfer very big cpanel account to another server


Active Member
Oct 29, 2007
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!


Well-Known Member
Jun 13, 2005
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?


Well-Known Member
Nov 19, 2006
cPanel Access Level
Root Administrator

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
/scripts/restorepkg username

thats it.Your account is transferred to new server.Correct DNS for it.
Last edited:


May 17, 2008
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.


Mar 12, 2008
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" ./ [email protected]:/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?


Active Member
Verifed Vendor
Aug 15, 2003
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 :)