GNU Wget is a free Linux / UNIX utility for non-interactive download of files from the Web or and FTP servers, as well as retrieval through HTTP proxies. GNU/wget has been designed for robustness over slow dialup internet or unstable network connections. If a download fails due to a network problem, it will keep retrying until the whole file has been retrieved. If the server supports regetting, it will instruct the server to continue the download from where it left off.
wget Recursive ExampleYou can use the -r ( recursive retrieving ) option as follows. You can also pass your ftp username and password to the wget command. First, make a backup directory in your $HOME directory:
mkdir ~/backup/ cd ~/backup/Now, use wget command as follows:
wget -r ftp://username:firstname.lastname@example.org/ wget -r ftp://tom:myPassword@ftp.example.com/home/tom/ wget -r ftp://tom:myPassword@ftp.example.com/var/www/
wget recursive ftp with mirroring optionThe -m option turns on mirroring i.e. it turns on recursion and time-stamping, sets infinite recursion depth and keeps FTP directory listings:
wget -m ftp://username:Password@ftp.example.com/ wget -m ftp://username:Password@ftp.example.com/var/www/html