How to download an entire directory and subdirectories using wget ?

How to download an entire directory and subdirectories using wget ?

Asked on December 28, 2018 in Regex.
Add Comment


  • 2 Answer(s)

    To download an entire directory and subdirectories using wget, use this in shell:

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

    Use parameters:

    -r   //recursive Download
    
    

    And also,

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

    To download the important content,use this:

    -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 insert no -l option, wget will use -l 5 automatically.

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

     

    Answered on December 28, 2018.
    Add Comment

    Alternately use the command :

    wget -m www.ilanni.com/nexus/content/
    
    
    Answered on December 28, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.