Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
server-administration:wget-recursive-ftp [2010-10-28 21:55:15] garrett.plasky created |
server-administration:wget-recursive-ftp [2011-07-01 19:21:10] garrett.plasky Approved |
||
---|---|---|---|
Line 2: | Line 2: | ||
We have found that using wget to recursively grab FTP contents is useful in the following situation: | We have found that using wget to recursively grab FTP contents is useful in the following situation: | ||
- | * You cannot use rsync or scp due to restricted or no shell access on the remote server | + | * You cannot use <c>rsync</ |
* You need to recursively get directories and globbing with < | * You need to recursively get directories and globbing with < | ||
* Transferring files to an intermediate workstation first is not feasible due to time/ | * Transferring files to an intermediate workstation first is not feasible due to time/ | ||
- | If all of these apply to you, then a recursive wget via FTP is probably | + | If all of these apply to you, then a recursive wget via FTP is probably |
- | <code console># wget -r ftp:// | + | <sxh shell>wget -r ftp:// |
The problem here is two-fold. If you simply run that command as given assuming the data used above, wget will download data to < | The problem here is two-fold. If you simply run that command as given assuming the data used above, wget will download data to < | ||
- | <code console># wget -r -nH --cut-dirs=4 ftp:// | + | <sxh shell>wget -r -nH --cut-dirs=4 ftp:// |
- | In the above example, < | + | In the above example, < |
Finally, you can also add < | Finally, you can also add < | ||
- | {{tag> | + | {{tag> |