Issue :

Need to transfer a folder from a remote server to the local server.

Solution :

One way of doing this is using the ‘wget’ command.

First, log in to your server via SSH and and launch wget mirroring using the following command :

wget -m ftp://username:[email protected]/folder/

Do replace the above with the corresponding values.

This will mirror the folder to your current directory location.

Finally, copy the downloaded files from the directory to where you need them to be.

The main advantage of this method is that it is much more interactive and has many options.
Use ‘wget –help’ or ‘man wget’ for more information on this.

Source : WHT

Contact Us On WhatsApp