How to download an entire directory and subdirectories using wget?

后端 未结 8 1806
生来不讨喜
生来不讨喜 2020-12-07 07:33

I am trying to download the files for a project using wget, as the SVN server for that project isn\'t running anymore and I am only able to access the files thr

8条回答
  •  误落风尘
    2020-12-07 07:42

    You can use this in a shell:

    wget -r -nH --cut-dirs=7 --reject="index.html*" \
          http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/
    

    The Parameters are:

    -r recursively download
    
    -nH (--no-host-directories) cuts out hostname 
    
    --cut-dirs=X (cuts out X directories)
    

提交回复
热议问题