| > Hello
>
> I'm currently using HTTrack to cache a website for
> work and I was wondering if there's any way I could
> schedule HTTrack to cache the website. I don't want
> the older copies to be deleted.
Step one, create a batch file to update the mirror
<http://forum.httrack.com/readmsg/30247/30246/index.html>
Step two, extend the batch file to creates a new directory and make hard links
of all the files (duplicates the mirror without using disk space)
<code>
@echo off& setlocal enabledelayedexpansion||pause
set cl=%*& rem "& echo missing quote>&2& exit/b 1
set from="%~dpnx1"
if %from% == "" echo missing from directory& exit/b 1
if not exist "%~dpnx1\*" echo %~dpnx1 does not exist& exit/b 1
set to="%~dpnx2"
if %to% == "" (
set to="%from:"=%_%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%"& rem yyyymmdd
)
xcopy %from% %to% /T /I& rem create the directory structure
for /F "usebackq delims=/" %%A in (`dir /a-d /b /s %from% 2^>nul`) do (
set old="%%~A"
set new=!old:"%from:"=%="%to:"=%!
fsutil hardlink create !new! !old!
)
</code>
schedule batch file with SCHTASKS. | |