Hi
I just want to share a little script which i just made:
Code:#!bin/sh # wget Websitecloner-Script echo Enter URL: read URL echo echo Enter Download-Directory: # if not existing it will be created read DD echo Do you want to clone the whole website or just the index.html? hole/index # type whole for the whole site and index for index.html read WHOLE if [ -d "$DD" ] then cd $DD else mkdir $DD cd $DD fi if $HOLE = whole then wget -r --page-requisites --convert-links -U Mozilla -erobots=off -w 5 $URL else wget --page-requisites --convert-links -U Mozilla -erobots=off -w 5 $URL fi echo echo site cloned
I know that its not a big thing but i felt like posting it and that it might help some beginners who want to clone a website into a custom directory
Greets Jodokus
EDIT: Updated the script....



