i have a web directory that has many folders and many sub folders containing files.
i need to download everything using wget or bash.
|
feedback
|
This question came from our site for professional and enthusiast programmers.
|
The best way is:
Which is short for wget "mirror":
| |||
|
feedback
|
| |||
|
feedback
|
|
"curl is a command line tool for transferring data with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS" | |||
|
feedback
|
|
you could use wget to mirror the directory structure. Did that with my prof's website on a daily basis. very handy ;-) | |||
|
feedback
|
|
You have a web directory? Is it situated on a remote machine and you can only access it through HTTP, or do you have shell access? Your mention of bash implies shell access, unless you mean using wget from the bash prompt. Wget is not always very efficient so if you have shell access to the machine where the web directory is located and you want to download it, you could do this
and then transfer the archive with ftp or scp. | |||
|
feedback
|
|
You could also try the following if you have an FTP account:
| ||||
|
feedback
|