Is there any way to preserve a file's create/mod date stamp when it is "put" via ftp (or even using Fetch) to a Win2K server and a SunOS 5.8 server? For example, if I copy a file with a create/mod date of "01/15/2005 3:36 PM" to my Win2K or SunOS ftp server, the date stamp will change to the date/time of when it was copied. I hate that. I want the copied file to keep it's original date stamp. Any advice?
You may need to preserve the original creation date and access permission mode of the copied file in the new file. As shown in the following example, the -p option enables you to preserve the original creation date and time and file access permission of YTD_sum in the file, year-end:
--mdtm
Use the MDTM command to get the remote time. The default is to take the times from the directory listings. This doesn't work if the server implements an inferior listing format (most do) and doesn't send time stamps in universal coordinated time (UTC). The damage caused by this is limited to file time stamps being wrong by a few hours. This option makes ftpcopy send a MDTM command for any file it might want to download. The drawback is that this eats performance: ftpcopy usually sends just one command for a complete directory its traverses. With the --mdtm option it has to send an additional command for any file. This option was added in version 0.3.10.
Thank you, thumbsup9. I don't administer either one of the ftp servers that I'm copying files to, and I only have ftp access to them. So, it looks like I'm just going to have to live with it changing the date. Oh well.
-James
Can you tell me more about it.Do you have any "SITE OPTIONS" box like we have it in WSFTP.
If yes,
go to "SESSION"
try checking the boxes beside
--Preserve filetime on upload
(MDTM support required)
and
--Preserve filetime on download
in other words
To presever the filetime stamp on either uploads or downloads:
From the Connect Site Manager select edit for the corresponding site and go to "Transfer" and check the box for " Preserve filetime on upload...." and/or "Preserve filetime on downloads".