How to download all files from a web server using your linux machine

If you have enough experience in linux server or similar things then only use the following solution.

The Problem,

I have an Australian client, she want to migrate her websites to another hosting company, ixwebhosting.com was her old hosting company. There were not supporting her for anything related with web server problems like changing php versions and this server blocking suddenly stopped working and not supporting HTTP POST request sometimes. Actually I was working fine before. Finally I suggested to migrate to another hosting company called A2Host, they have some cool pricing plans and almost good technical support.

Actual problem starts when i try to using their ( ixwebhosting ) website control panel, It was not user friendly and don’t have most of the features available in CPanel, There was an Option for zip the project directory in their control panel, but it was not working anyway.  It is not possible to download all the files to my local machine using filezilla and again upload the same to the new service provider.

So, how can i solve this issue ?

Solution

1. I logged in the new webserver ( A2host ) via SSH

Find your webserver host, port number,  username and password , in case of A2H, username and password will be different than your usual login credentials of the control panel

login to the server via linux terminal or user putty in windows

2. Connecting to the old webserver from the current terminal window

Choose your directory you want to save the files being downloaded

use cd <your directory>

connect to the old server via FTP

use

lftp <hostname your using in you desktop ftp client such as filezilla>

ex: lftp web111.ixwebhosting.com

after doing this you have to login to FTP server

use

user <your ftp username>

ex: user webuser

now enter your password

Probably you will be logged in to the FTP server.

use the ls command to list all the directories and files

use the following command to download a particular directory to your new server

mirror <source directory> <target directory>

That’s it

NB: Please use experts help to do the same, otherwise it might cases server issues or data loss

 

Leave a Comment

Your email address will not be published. Required fields are marked *