How to download an entire directory and subdirectories using wget?

后端 未结 8 1770
生来不讨喜
生来不讨喜 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 08:03

    You may use this in shell:

    wget -r --no-parent http://abc.tamu.edu/projects/tzivi/repository/revisions/2/raw/tzivi/
    

    The Parameters are:

    -r     //recursive Download
    

    and

    --no-parent // Don´t download something from the parent directory
    

    If you don't want to download the entire content, you may use:

    -l1 just download the directory (tzivi in your case)
    
    -l2 download the directory and all level 1 subfolders ('tzivi/something' but not 'tivizi/somthing/foo')  
    

    And so on. If you insert no -l option, wget will use -l 5 automatically.

    If you insert a -l 0 you´ll download the whole Internet, because wget will follow every link it finds.

    0 讨论(0)
  • 2020-12-07 08:04

    This works:

    wget -m -np -c --no-check-certificate -R "index.html*" "https://the-eye.eu/public/AudioBooks/Edgar%20Allan%20Poe%20-%2"
    
    0 讨论(0)
提交回复
热议问题