Hi all,
I am trying to mirror a site on my Linux box but want to exclude particular
directories contained at random places in the download path.
Example:
I want to exclude directory XYZ and its contents whenever wget finds it in the
current path.
site
/dir1
/dir2
/XYZ
/dir3
/XYZ
/dir4
/dir5
/dir6
In this example only dir1,2,3,5 should be downloaded with their contents.
I have tried using the following varitions of wget but it just completely
ignores the directory exclude and downloads the XYZ directory and its contents.
It correctly performs the file excludes though.
1. wget -m -np -X /XYZ -R .bmp,.jpg http://site.com/dir1/
2. wget -m -np -X "/XYZ" -R .bmp,.jpg http://site.com/dir1/
3. wget -m -np -X /"XYZ" -R .bmp,.jpg http://site.com/dir1/
4. wget -m -np -X XYZ -R .bmp,.jpg http://site.com/dir1/
5. wget -m -np -X /dir1/XYZ -R .bmp,.jpg http://site.com/dir1/
6. wget -m -np -X /"XYZ*" -R .bmp,.jpg http://site.com/dir1/
7. wget -m -np -X ./XYZ -R .bmp,.jpg http://site.com/dir1/
8. wget -m -np -X ./"XYZ" -R .bmp,.jpg http://site.com/dir1/
Thanks for your assistance.
Werner