Posts Tagged ‘ftp’

Linux | Recursive FTP download with wget

Sunday, May 4th, 2008
w*g*e*t -r ftp://username:password@host/relative_path_from_username_homedir

You need to remove the asterisks (I used that just to work around a security measure by wordpress, I guess).
The directory will be download in a local directory:
host/relative_path_from_username_homedir
retaining the remote filesystem structure

Alternatively you can use an absolute path:

w*g*e*t -r ftp://username:password@host/absolute_path

For example:

w*g*e*t -r ftp://username:password@host//var/local/data.txt

You need to remove the asterisks (I used that just to work around a security measure by wordpress, I guess).

N.B.: update - unfortunately once wget failed. I mean, it missed to download some nested directory of Smarty.