Posted By

archvi on 12/07/11


Tagged

mirror wget


Versions (?)

mirror a website with wget


 / Published in: Bash
 

Mirroring only from allowed sub-dir

-m : mirror website -k : relative urls for downloaded files, otherwise your mirrored link point to original site -I : allowed dir --domains : allowed domains

  1. #!/bin/dash
  2. wget -mk -I "i386,src" --domains "sub.other-site.com,other.site.com" http://distro.linux.com/

Report this snippet  

You need to login to post a comment.