D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Uploading files - dates

 

On Fri, 11 Mar 2011, Neil Winchurst wrote:

I have noticed that when I upload any files to my website via FTP that the original dates of the files do not get copied across. The date shown is the date of the upload.

Is there any way to have the original dates copied across?

It depends on how you do the copy. Can you use rsync? That has the ability to preserve timestamps.

I don't think the FTP protocol actually allows changing timestamps.

Do you have shell acces to the remote site? If so, FTP up a TAR file and unpack it locally... tar has the option of preserving timestamps and filemodes.

Gordon

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq