Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm migrating to a new server and I want to directly copy the files from old server to the new server without downloading to my PC and then uploading again.

Is this possible? Both servers have cPanel.

Thanks.

share

migration rejected from stackoverflow.com Jan 13 at 21:51

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by HopelessN00b Jan 13 at 21:51

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

    
This question appears to be off-topic because it is about working with a service provider's management interface, such as cPanel. –  HopelessN00b Jan 13 at 21:51

1 Answer 1

WHM has this functionality built in. Log in to the WHM control panel of the server you want to transfer to (you need to log in as root or another user with root access), in the left-hand menu scroll down to 'Transfers' and select the appropriate option, then enter the root login credentials for the server you want to transfer from and select the accounts. Then follow the guide to confirm the settings you want and hit transfer. WHM will start moving the files, configuration and database over to the new server. Once that's done you should test the new server by modifying your hosts file (Google will show you how to do this). Once you're sure everything works as expected update the nameservers on your domain to the new nameservers given to you by CPanel and you're good to go.

If you preffer working on the command line there are two tools called '/scripts/pkgacct' and '/scripts/restorepkg' that can wrap up a domains settings, files and db into a tar.gz file, then copy the tar.gz file accross to the new server using SCP or something similar and use the restorepkg script to re-create the domain in the new server

share

Not the answer you're looking for? Browse other questions tagged or ask your own question.