• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2207
  • Last Modified:

FTP Time Stamp

Time Stamp on FTP does not match the original date and time.

I am trying to upload folder which are created in 2008, however when I upload it on to FTP it shows the current DATE and TIME, that's today date. I am using MS-DOS as Directory Listing.

Any help is appreciated.

Regards,
Jana.
error.jpg
0
parvathareddy
Asked:
parvathareddy
  • 6
  • 6
  • 5
1 Solution
 
theras2000Commented:
Yeah that's normal.  You've created a new file today that is a copy of the old file, so of course the creation date will be today.
0
 
parvathareddyAuthor Commented:
I agree with a file, but If I copy a folder the contents inside the folder and the time stamp for the sub directory should be the same as it was created.
0
 
theras2000Commented:
Nah it's all the same thing.  It's still a new object.
You can even just test this in Windows.  Copy any small, old folder and you'll see that everything in it has a creation date of now.  The modified' date remains the same as the original file, though.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
Bill BachPresidentCommented:
There are two options to "fix" this:
1) Send a ZIP file.  The ZIP file will then get the new "Last Modified" date, but the files INSIDE the ZIP file will be extractable with their original Last Modified date information.

2) Use an FTP tool that supports doing what you want to do.  I believe WS_FTP handles this with no problems, and other FTP tools may as well.
0
 
parvathareddyAuthor Commented:
This also does not work, if not IIS what could be the best 3rd party FTP server which can over come this issue.
0
 
Bill BachPresidentCommented:
There are two sides -- both the server AND the client must support it.    The actual command used to set the timestamp is:

MDTM [YYYYMMDDHHMMSS] filename.ext

I know that Secure FTP Server supports this option, as does the open-source Filezilla (which I use).  

I may have been wrong about WS_FTP, but I do know that some clients can handle this directly.  When I use Beyond Compare (www.scootersoftware.com) to push files to my web server, I get the correct (original) timestamp of my uploaded file.  I've heard that CuteFTP may also support this, too.
0
 
theras2000Commented:
Lucky you joined the party.  I didn't even know this existed.
0
 
parvathareddyAuthor Commented:
I am trying to use FileZilla, WS_FTP, nothing works for me... the time stamps remains the same.
0
 
Bill BachPresidentCommented:
I checked, and WS_FTP *does* allow it, but you have to set it up on a site-by-site basis, not as a "general" option.  Here's the instructions for doing so from the help system:

Preserving file date and time
By default, when you transfer files, the file date and time are updated to the date and time of the transfer. You can change this, so that the date and time are preserved.

To set how date and time are handled:

From the Site Manager, select the site in the Sites list.
Click Edit.
Select the Transfer page.
Select or clear Preserve filetime on uploads or Preserve filetime on downloads.
Important Note about Uploads
If the preservation of file date and time is not supported by the FTP site, you will get an "MTDM" error when you upload files to the site. Note, however, that the files will transfer correctly with updated timestamps from the FTP site. (The "MTDM" error is not serious, even though it displays in red.)

I have no easy way to test if the FTP server in IIS supports it or not, since I switched to Filezilla as my FTP Server -- but Filezilla definitely supports MTDM.


If you are really trying to synchronize a local folder with a remote FTP folder, then I would recommend getting Beyond Compare, which can handle much of the sync process for you automatically.
0
 
parvathareddyAuthor Commented:
I tried with FileZilla client and SmartFTP Client, these both does not help me. I am still not able to preserve the Time Stamps using these clients. Does IIS6.0 support these feature? if not does any one have a supporting document for the same.
0
 
Bill BachPresidentCommented:
Apparently, the problem is IIS:
    http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Microsoft_IIS/Q_21323730.html

I would recommend downloading and using the Filezilla FTP server instead of IIS.
0
 
parvathareddyAuthor Commented:
I tried with FileZiila it happens the same way even if I use the filezilla client and select the Preserve Time Stamp option.
0
 
Bill BachPresidentCommented:
Are you still using IIS as an ftp server?
 My suggestion was to use the Filezilla *server* instead
0
 
Bill BachPresidentCommented:
Why are we deleting this?  The original question was about preserving the timestamp on an FTP upload, which has been answered -- by using a client that supports the MDTM option.  The ancillary question was about doing this on IIS FTP server, which has also been answered -- IIS doesn't support this feature.  Another unasked question was how to get around the problem, which has also been answered -- by using the free and open course Filezilla FTP server.
0
 
theras2000Commented:
I agree with BillBach.  Thoroughly answered and shouldn't be deleted.
0
 
theras2000Commented:
Accept post 4 (ID:24149449), Bilbach's 1st post.
0
 
parvathareddyAuthor Commented:
None of the expert was able to fix the issue, I tried with all the possible TBS which I was asked to follow. So I dont agree with any of the solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 6
  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now