| Hi,
I had a similar problem mirroring a website running plone. I was getting
errors such as this in the log:
10:59:47 Error: Unable to save file
/home/hamish/glazesorg/glazes.org/images/book.jpg : Is a directory
I discovered that I could use wget to fix the problem:
wget -m <http://glazes.org/images/book.jpg>
I automated it by processing the log file, creating a file containing all of
the wget commands and then executing the file.
#Create a file called fixme.txt whith lines like this:
glazes.org/images/book.jpg
> cat hts-log.txt | grep "Is a directory" | cut -d\ -f6 | cut -d/ -f8- >
fixme.txt
#Create a file called cods.txt with lines like:
wget -m <http://glazes.org/images/book.jpg>
>for f in `cat fixme.txt`; do echo "wget -m <http://$f> >> cmds.txt ; done
#Execute the commands
sh < cmds.txt
I hope that's useful to someone.
Hamish
| |