How to recursively mass transfer files using FTP protocol

Sometimes using FTP is the only way to transfer files off or to a web server. As you may already know its impossible to recursively transfer all files using a command line client such as “ftp”.  A great solution to this problem is to use wget with the -m (mirror) parameter. Wget supports the ftp protocol as well as authentication. For example, to recursively copy all contents of a folder to the local folder you would do the following:

wget -m ftp://account:password@server/pathtofolder/*

This command will mirror the entire remote folder structure and files to the local and current path.

Print Friendly, PDF & Email