| hi,
I am using httrack to publish(replicate) on an internet visible site changes
from a local site(not visible to internet).I am using a publish.bat file for
that.
Is there any option so that I can get in the temp location just the files that
have been modified since last copy?
There are just 2 folders that will require a lot of updates (news and
productLines). How can I filter so that in the temp locations to have just
/news and /productLines?
Now I am using something like this, but it is not working:
REM ~~~ "WIN_HTTRACK_PATH" : Path of the folder where WinHTTrack is installed:
-
SET WIN_HTTRACK_PATH=D:\Program Files\WinHTTrack\
REM ~~~ "WIN_HTTRACK_DRIVE" : The drive where WinHTTrack is installed
(required by the batch file to navigate correctly to the path): -
SET WIN_HTTRACK_DRIVE=D:
REM ~~~ "INTRANET_URL" : The Url of the Intranet SpaceLift site: -
SET INTRANET_URL=http://auth5/
REM ~~~ "HTML_TEMP_LOCATION" : A temporary location where all the converted
HTML files will be copied by WinHTTrack application: -
SET HTML_TEMP_LOCATION=D:\SpaceLift\temp
REM ~~~ "HTML_ACTUAL_LOCATION" : The physical path of the SpaceLift public
website. A batch file can be scheduled to run to copy all or certain
subfolders from HTML_TEMP_LOCATION to HTML_ACTUAL_LOCATION. This is useful
when we want to update only certain subsites like the news subsite: -
SET HTML_ACTUAL_LOCATION=d:\inetpub\Spacelift
SET FILTER_OPTION=-* +http://auth5/news/* +http://auth5/productLines/*
SET LOG_FILE=D:\SpaceLift\Convert.log
REM -- *** N.B. Use Double Percentage "%%" for HTTrack command line arguments
that require single "%", otherwise the batch file will not evaluate them
properly... e.g. use "-%%e0" instead of "-%e0" as shown below: -
SET COMMAND_LINE_ARGUMENTS=-w -r20 -%%e0 -z -p3 -I0 -B -E3600 -T600 -R10 -H0
-%%P0 -K0 -o -N "%%p/%%n%%[ProductLineID]%%[SupplierID].%%t" -F "Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0)"
REM ~~~ "FULL_COMMAND" : The full command that will be executed from this
batch file to run the HTTrack application: -
SET FULL_COMMAND=httrack %INTRANET_URL% -O %HTML_TEMP_LOCATION%
%FILTER_OPTION% -f %LOG_FILE% %COMMAND_LINE_ARGUMENTS%
CD\
%WIN_HTTRACK_DRIVE%
CD %WIN_HTTRACK_PATH%
ECHO Executing the following command: -
ECHO.
ECHO -------
ECHO %FULL_COMMAND%
ECHO -------
ECHO.
REM ####### THE FOLLOWING WILL EVALUATE TO SOMETHING LIKE: httrack
<http://spaceliftstage/> -O "C:\WinHTTrack\sites\SL042507"
"+http://spaceliftstage/*" -f "C:\SpaceLiftConvert.log" -w -r20 -%e0 -z -p3 -I
-B -%F -E3600 -T600 -R10 -H0 -%P -N0 -K0 -o -u2 -s0 -%B
%FULL_COMMAND%
Thanks,
Cristian | |