Skip to content

Instantly share code, notes, and snippets.

@wethinkagile
Last active August 29, 2015 14:02
Show Gist options
  • Save wethinkagile/93a49452445234d05df9 to your computer and use it in GitHub Desktop.
Save wethinkagile/93a49452445234d05df9 to your computer and use it in GitHub Desktop.
Wget fetch files in a directory
#!/bin/bash
# Fetch Logs
wget -r --ca-certificate=theCert.pem \
-A gz --directory-prefix=logs/property/ \
-R html,gif,"index*","YourOtherExceptions" --no-verbose --no-parent \
--no-directories --user=YourUsername -e robots=off \
--password=YourPassword https://subdomain.domain/dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment