Tuesday, 8 March 2016

Transfer Files Without Downloading

Everytime I change my webhosting, transfer of files from one server to another is one of the most time consuming tasks. We have to first download all the files to our computer and then reupload them to the new server. This process is easy if the size of files on your server is not much but what if the size of files is 2-3 gb? This traditional method becomes a nightmare, espcially for users with slow internet. So, In this article I am going to teach you, how to transfer files without downloading them to your computer.

There are two ways to make it possible. First is server to server file transfer using php file and the second one is transferring files using VPS (Virtual Private Server). The file transfer method using PHP is easier method than the VPS method. So I recommend you to try it first, if it doesn't work then use VPS method. So, let's start.

Method #1 Server to server file transfer using PHP


This is the easiest method to transfer files without downloading. In this method, we use php script to transfer files. This method doesn't work sometime especially if you are using free webhosting because they have a memory limit on free account. Don't panic if this doesn't work for you, just use the VPS method.

1. Login into your old cPanel, select all files and compress them in zip.
login-into-your-cpanel-and-compress-all-files
2.
After step #1, you will see a new .zip file in your old cPanel. Copy it's url, it will look something like http://youroldwebsite.com/xyz.zip.

3.
Download "get.php.zip" file by clicking here . Then extract the downloaded .zip file and open "get.php" file in notepad.

4. In this step, we will edit downloaded "get.php". Find this line in "get.php" file: $source = "http://rahulnegi.in/xyz.zip"; and replace the url in this line with your file's url http://youroldwebsite.com/xyz.zip.

5. Save the "get.php" and upload it on your new cPanel.

6. Now simply open http://yournewwebsite/get.php in your browser.

7. That's it. The compressed files from your old cPanel has transferred from your old cPanel to your new cPanel.

Method #2 Transfer of files using VPS


This method is a bit more complicated but works for sure. In this method we first download files on a Virtual Private Servers and then upload them from there. If you don't know what is a virtual private server then read our this article. Now let's start.

1. Get a free VPS by reading our this article: Free High Speed Internet 300+ Mbps

2. Login into your old cPanel file manager using VPS browser and compress all the files you want to transfer.
compress-files-in-vps

3. Download the compressed .zip file in your vps.

4. Select "Save File". Your file will be downloaded in few seconds, as the speed of vps is 300+ mbps.
server-to-server-file-transfer

5. Now login into your new cPanel file manager and click upload file. (In your VPS)

6. Select "Browse". It will open a new screen, click "search" at the top and search "download". You will see "Downloads" double click that and you will see your downloaded file there.
search files on vps

7. Select the downloaded .zip file and click open.
upload file

8. That's it your file will be uploaded on your new cPanel with a speed of 300+ mbps.

No comments:

Post a Comment