Moving Big Files from a Hosting Server to Another
At some point in time, you will probably need to move your website to a new host, whether it is to save money, for new features, or to increase your storage and bandwidth. The process of moving your website to a new host can seem very intimidating. You want to make sure you get all the files moved, without bringing down your existing site first. If you have a slow or non-reliable internet connection, then downloading your site to your local PC, and then uploading to the new host can be time consuming and may fail.
It would be much better if your could use the high speed connections of the two ISP’s, and transfer directly from one server to the other. This will be much faster, and definitely a more reliable way to transfer your site. The best way to accomplish this is using LFTP.
If you’d like to try this method of transfer, you’ll need to verify your hosting is Linux based (most are), and that you have SSH access to your account. Also, check with your ISP and make sure the LFTP command is available. Once you have verified those few items from your new hosting company, you are ready to move your site.
Here are the steps for mirroring your site with LFTP:
- Access the destination server using your SSH access. You can use SSH client like PuTTY for it.
- Connect to the source server using this command :
lftp -u username, password, ftpsite
Where :
username is your source server FTP username
password is your source server FTP password
ftpsite is your destination hostname - Then, after the FTP connection is established, type this command to transfer the data from your source server to destination server :
mirror /path/to/source_directory path/to/target_directory - The transfer process will begin after you type it.
A few things you need to watch out for, first, make sure you choose the correct directory structure for your new host, or you may end up with the files nested inside of another directory. Secondly, if you are using any database driven sites, like Joomla, OSCommerce, Mambo, and Wordpress, the database will not transfer properly. All the files will mirror across perfectly, but the database will not be up and running. LFTP will not transfer a password protected folder either. You would need to remove the password, transfer the folder, and then assign a password once the folder is transferred.
Even though there are a few shortcomings to the LFTP mirror, it is one of the best ways to quickly move your entire website from one ISP to another. It is a fast and reliable way to move your website.





Recent Comments