linux - Can wget be used to get all the files on a server? -
can wget used files on server.suppose if directory structure using django framework on site foo.com
and if directory structure
/web/project1 /web/project2 /web/project3 /web/project4 /web/templates
without knowing name of directories of /project1,project2.....is possible download files
you use
wget -r -np http://www.foo.com/pool/main/z/
-r (fetch files/folders recursively)
-np (do not descent parent directory when retrieving recursively)
or
wget -nh --cut-dirs=2 -r -np http://www.foo.com/pool/main/z/
--cut-dirs (it makes wget not "see" number remote directory components)
-nh (invoking wget -r http://fly.srk.fer.hr/ create structure of directories beginning fly.srk.fer.hr/. option disables such behavior.)
Comments
Post a Comment