I think it would be pretty simple to write a CF application to manage your
site updates.  Keep a database of the files, with full path, last modified
timestamp, and timestamp on the file when it was last uploaded.  Use CFFTP
to copy the content up to the server.  Once you upload a file to the remote
server (and you know the transfer was successful), record the modification
timestamp of the local file in your database.  Once the timestamp on the
local file differes from that in your db, you know you need to upload the
file.

You'd pick up new files, and find deleted content by using CFDIRECTORY to
traverse your local directory tree, looking for new files and detecting
files that have been deleted (a name change is essentially a delete, then an
add from both your database and the remote server).

You could do this in either one or two steps.  Probably best to do it in
two: Traverse the directory tree, and make queries to your database, looking
for differences and creating a list of files to be uploaded and deleted from
the remote server.  Then perform the FTP in the second step.

Jim


----- Original Message -----
From: "Parker, Kevin" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 6:00 PM
Subject: FTP clients


> I apologise that this is sought of OT'sh so if anyone has any suggestions
> please email me of the list.
>
> Our web site has grown so big that we face huge upload times each time we
> regenerate. The FTP client we use can only check if a file has changed by
> comparing file size. This is unreliable. Comparing date and time stamps
seem
> to be the way to go but when you write a file to the server it takes on
the
> date and time stamp of the destination server. We need an FTP client with
> some intelligence that addresses this problem so that only changed files
are
> reliably uploaded.
>
> Can anyone advise if they use a FTP client that addresses this issue and
> what it is?
>
> TIA!
>
>
>
> +++++++++++++++++++++
> Kevin Parker
> Web Services Manager
> WorkCover Corporation
>
> [EMAIL PROTECTED]
>
> www.workcover.com
>
> p: +61 8 82332548
> f: +61 8 82332000
> m: 0418 800 287
>
> +++++++++++++++++++++
>
>
>
****************************************************************************
> This e-mail is intended for the use of the addressee only. It may contain
> information that is protected by legislated confidentiality and/or is
> legally privileged. If you are not the intended recipient you are
prohibited
> from disseminating, distributing or copying this e-mail. Any opinion
> expressed in this e-mail may not necessarily be that of the WorkCover
> Corporation of South Australia. Although precautions have been taken, the
> sender cannot warrant that this e-mail or any files transmitted with it
are
> free of viruses or any other defect.
> If you have received this e-mail in error, please notify the sender
> immediately by return e-mail and destroy the original e-mail and any
copies.
>
****************************************************************************
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to