| > here is the tcsh version of my shell script:
> #!/bin/tcsh
> # create meaningful named, dated folder for archive
> set tdy=`date +%Y"_"%m"_"%d"_"%H"_"%M`
> set savetopath="/usr/local/www/mysite.com/httpdocs/site_
> archives/clientname/"$tdy"_sitename_oneleveldeep"
In bash I would do like this to get it funktion correctly, I think (I changed
the paths and website in my example):
#!/bin/bash
# create meaningful named, dated folder for archive
tdy=`date +%Y_%m_%d_%H%M`
savetopath=`echo "~/Websites/"$tdy"_dr.dk_oneleveldeep"`
httrack <http://www.dr.dk/> -O "$savetopath" +*.dr.dk/* -F "httrack
useragentarchiver" -r3 -m2000000 -c4 -nv
> * HTTrack3.22-3-nozip-nossl: command not found (in
Consider using at least HTTrack version 3.33 as the later versions (in my
experience) are better than the earlier versions. | |