Re: flawed CVS Scripts (was Re: d.g.o/dotplan/schedule outdated!)



On 11/08/04 10:02, Christian Neumair wrote:

This is horrible. We *have* to fix it. Where are they located? What can
be done about it? Can't we simply rm -rf dirs that don't existing
according to www-devel-2/contents or can't they be removed manually?!
Outdated content is one of the most embarassing things at d.g.o.
The best sort of setup I've managed for this type of thing is to build to a temporary directory, then use rsync to update the online version of the website telling it to look at file checksums instead of dates, and delete missing files.

This is pretty easy to add onto whatever existing build scripts you are using, and has the benefit that file modification dates and inode numbers don't get updated if the file contents remain unchanged. This results in better caching behaviour (Last-Modified and ETag headers remain constant), which also results in lower bandwidth usage (both at the server and client ends).

The rsync command you'd want is something like this:
   rsync -rlpc --delete fromdir/ todir

James.

--
Email: james jamesh id au
WWW:   http://www.jamesh.id.au/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]