HostOnNet Blog

Moving BIG sites in Cpanel

Moving sites between Cpanel servers are easy with the WHM Transfer feature.

But some BIG sites fails/time out when moving with WHM Transfer feature. To move such sites, you have do backup and move it to new server and restore. Cpanel provides some tools do make the site backup and restore easy.

Here is how to move a site from SERVER1 to SERVER2.

On SERVER 1 (source)

1. Create Backup

Take backup of the web site with pkgacct

/scripts/pkgacct USERNAME

USERNAME – is the Cpanel login name of the site you want to move.

This will create backup file in /home folder.


root@godislove [~]# /scripts/pkgacct keralapa
pkgacct started.
pkgacct version 2.9 – running with uid 0
Copying Reseller Config…Done
Copying SSL Certificates, CSRS, and Keys…Done
Copying Mail files….Done
Copying frontpage files….Done
Copying proftpd file….Done
Copying www logs………….
Copying shell…….Done
pkgacctfile is: /home/cpmove-keralapa.tar.gz
Creating Archive ………….
md5sum is: 4e77ff26c08094c5df1af9a1e4b88f37

2. Move the Backup to New Server

This can be done several ways, FTP, SCP, RSYNC, etc…

We use another way here, that is we just move the backup to public_html folder of a web site, then download it from SERVER2 with wget command

mv /home/cpmove-USERNAME.tar.gz /home/USERNAME_OF_ANY_SITE/public_html/

Now make the file accessable by public

chmod 777 /home/USERNAME_OF_ANY_SITE/public_html/cpmove-USERNAME.tar.gz

ON SERVER 2 (destination server)

1. Downloading the Backup

cd /home
whet http://websiteonserver1/cpmove-USERNAME.tar.gz

2. Restore the Account

/scripts/restorepkg USERNAME

Now you can edit DNS on SERVER1 and point it to SERVER2.

Then change name servers, wait 24 Hours to propogate, verify it is pointing directly to new server, then you can delete the site from old server safely.

Posted in Uncategorized. Bookmark the permalink.

  • by guru898rider or
    as expect from our admin, the website is restored within a week! you are awesome. curiously, i want to ask you what exactly happend to our server and why do we need a new machine?

  • ed


    Just thought I would check out your blog.
    I am new to blogging. I hope you don’t mind me posting to your blog. If you are interested in checking out my blog and making a post that would be great.

    I have a frontpage hosting web site/blog. It pretty much covers ##WEB HOSTING## related stuff.


  • Hey BizH .com, you have a great blog here! I have a web
    site & blog about reliable hosting.
    Yours is top-notch!
    If you have a moment, please visit my site
    reliable hosting
    I wish you all the best!

  • Hi BizH .com!I like your blog!
    I just came across your blog and wanted to
    drop you a note telling you how impressed I was with
    the information you have posted here.
    I have a web hosting real estate
    site. It pretty much covers web hosting real estate related subjects.
    Come and check it out if you get time ๐Ÿ™‚
    Best regards!

  • BizH .com,

    I saw your post
    regarding web hosting .

    I have about 7 VPS servers most with different companies.
    I had one with that was working pretty well.
    I had upgraded to their top VPS plan and I had close to 100
    websites on there which was pretty good. I had some
    restaurant websites, marketing info websites a wide variety.
    After several months with I got an email through
    their support system. “Account Closed” Holy cow! Heart attack time!
    I looked at the ticket and they closed the account because of one
    spam complaint by one of my customers.
    No warning, I had never had one complaint about any of
    my customers before, first time, they shut down everything.
    They did not even let me suspend
    the customer’s account or deal with the problem. Just nuclear option.
    I tried to negotiate with them and they even refused to let me
    access the data to back it up.

    Lucky I had been pretty good about backups on my end.
    Bottom line. If you are starting to resell hosting watch out
    for unless you really enjoy heart attacks.
    You are just one complaint away from losing your whole

    I think Servint and Liquidweb are some of the best VPS providers
    I have found if you are looking for alternatives.

    More posts on this topic;=1#post2437180

  • I was searching blogs for buy ssl and found your entryโ€ Moving BIG sites in Cpanel Its not a perfect match but Tis the season! So I thought I would write. There is lot of info on Embroidery stuff out there. I have been looking to add content to our site about Patterns and Sewing. If you have any good resources please share — feel free to take a look at our site at buy ssl
    I just read your blog entry – Moving BIG sites in Cpanel — my partner and I are planning on setting up a review website โ€“ it will live on the home page of our site buy ssl. I am looking for versatility in embroidery machine and setup a comparison. If you can help with any insight or direction that would be great. I am also would like to hear about Academy’s courses with hands-on embroidery that people have taken.
    I just found your blog entry — Moving BIG sites in Cpanel — I am starting my own blog โ€“ you find frequently updated news, commentary, and the latest links about graduate school for applicants, current graduate students, post-docs, and faculty. buy ssl If you come across any timely links or stories of interest to applicants, students, and faculty, share them with me — so I can share them with all of our readers. Please visit us buy ssl

  • Cheers,
    ssl security