Skip to content

Instantly share code, notes, and snippets.

@linhai86
Last active August 29, 2015 14:09
Show Gist options
  • Save linhai86/016abc338f4b23d9b486 to your computer and use it in GitHub Desktop.
Save linhai86/016abc338f4b23d9b486 to your computer and use it in GitHub Desktop.
Download a folder without downloading its parents

Download a folder without downloading its parents:

nohup wget -r -np -nH --cut-dirs=2 -R *index.html* --http-user=username --http-password=password https://www.example.com/aaa/bbb/ &

rsync

rsync -r -v -h -P --exclude "*.sam" username@host:~/source destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment