Reputation: 9216
I have a server with set htaccess. When I want to download files from it I simply execute:
wget -r --user="user" --password="password" -q 'http://server'
All files are downloaded but wget
creates also many additional files index.html?something
in each directory and I have to manualy remove them. Is to possible to not create that files?
Upvotes: 1
Views: 119
Reputation: 242038
See the --accept
and --reject
options, if your version of wget
suppors them:
-A acclist --accept acclist -R rejlist --reject rejlist
Specify comma-separated lists of file name suffixes or patterns to accept or reject. Note that if any of the wildcard characters, *, ?, [ or ], appear in an element of acclist or rejlist, it will be treated as a pattern, rather than a suffix.
Upvotes: 1