HTTrack Website Copier
Free software offline browser - FORUM
Subject: Re: How to update local website to local directory?
Author: William Roeder
Date: 08/31/2011 16:47
 
> What I was trying to do is what is explained in this
> HTTracks FAQ:
> <http://www.httrack.com/html/faq.html#QM11c>
HTTrack will convert all file:// links to relative ones. 
what part of ALL didn't you understand.
> 
> copied. But updating it will rewrite all files, even
> files that haven't been changed... and writing to an
> usbdisk can take a long time.
There's no way for it to know whether it's changed or not.
my solution only write to usb those files with newer time than what's on the
usb:
1) get touch.exe from <http://sourceforge.net/projects/unxutils/files/>
2) create a batch file to change the new file's timestamps to the original's
(untested)
rem newDir origDIR
setlocal disableDelayedExpansion||pause
for %%F in (%1) do set new=%%~dpnF
for %%F in (%2) do set orig=%%~dpnF
for /R %%F in ("%new%\*) do (
   filenew="%%F"
   fileorg=!filenew:%new%=%orig%!
   touch -R !fileorg! !filenew!
)
3) xcopy /S /D newDIR USB:

for /R
 
Reply Create subthread


All articles

Subject Author Date
How to update local website to local directory?

08/30/2011 18:31
Re: How to update local website to local directory?

08/30/2011 21:17
Re: How to update local website to local directory?

08/31/2011 00:59
Re: How to update local website to local directory?

08/31/2011 16:47
Re: How to update local website to local directory?

08/31/2011 16:50
Re: How to update local website to local directory?

08/31/2011 18:17




6

Created with FORUM 2.0.11