I'm not clear on the meaning of "Preserve timestamps of transferred files". Is that the timestamp of the uploaded file or the one already on the web server? Will it be using the "Creation Date", "Last accessed date" or "Modified date"?
If you use FileZilla, you can make the file modification timestamps of files you upload match the timestamps of the source files on your computer. Just enable the Preserve timestamps of transferred files option of the Transfer menu.
I'm having a problem with the app that updates the mirrored copy on the ftp server, in that it thinks everything's new now since all the files have the same timestamp, and appear to be newer than the copies on the server. It wants to upload everything all over again, which isn't an acceptable option.
Another issue I'm concerned about is that some of the files that exist in both locations have changed, and if I change all the timestamps without considering this, I'm afraid some won't get mirrored later. In addition to changing all the timestamps, I'm going to need a way to compare the differences between the files in each location, and update the server's files according to a hash or something. Luckily, the ftp server does support hashing. I'm not aware of which client that can do what I need it to do to do that. Could someone also reccomend a client to do that?
The following solution will update timestamp for files (labeled as "date modified" in Microsoft Windows) available via FTP with FileZilla Client. I have not found a solution to synchronizing the folder timestamp.
This works fine on my WAMP server but when I upload the files via FTP, the modified date is changed to when they were uploaded. I'm currently hosting on a free hosting provider (freehostia to be exact). Is there any way to keep the modified date/time from changing when it's uploaded? Or is there perhaps an alternative way to go about this? Any ideas are appreciated.
Hi,
I am using FileZilla to FTPS deploy to an Azure website. However, the file's timestamp keeps changing to the current date/time upon upload. I have already modified FileZilla's "Preserve timestamps" setting.
Thanks,
Green
I believe this is by design since its up to the server to adhere to that setting for not modifying the timestamp. The Kudu zip API seems to to be more accurate (although not perfect since it seems to assume the local time of location that's uploading the file to be UTC). The images below are from my local machine which is EST but Kudu did the conversion for its time to be 5 hours earlier (ie UTC -> EST).
Box's FTP option now supports the ability to preserve files' original created and modified date/timestamps during an FTP transfer to Box. These timestamps will be visible on Box to satisfy compliance or regulatory requirements. See Understanding Box File Timestamps
Caveat: Most FTP clients support the ability to send a file's original modified timestamp during a transfer, however, most DO NOT support the ability to send both the original modified AND created date/time during a transfer. Please consult with your FTP client's support team to confirm the available capabilities.
I'm recovering files from an old hard drive and I need to keep the last modified date from the drive. The reason they are updating is because I need to change the ownership of the files to a new user.
Some SFTP file transfer clients can attempt to change the attributes of remote files, including timestamp and permissions, using commands, such as SETSTAT when uploading the file. However, these commands are not compatible with object storage systems, such as Amazon S3. Due to this incompatibility, file uploads from these clients can result in errors even when the file is otherwise successfully uploaded.
Commands that attempt to change attributes of remote files, including timestamps, are not compatible with object storage systems such as Amazon S3. Therefore, if you are using Amazon S3 for storage, be sure to disable WinSCP timestamp settings (or use the SetStatOption as described in Avoid setstat errors) before you perform file transfers. To do so, in the WinSCP Transfer settings dialog box, disable the Set permissions upload option and the Preserve timestamp common option.
First, open a web browser and visit the official FileZilla website (filezilla-project.org). This homepage provides two obvious Download buttons for you to choose from. Pick the one that says Download FileZilla Client (not the Server option).
I recently bought a Nexus 4 and I would like to transfer my photos of my previous device to it. My previous Android phone used the standard USB mass storage which gave 0 problems to copy back and forth stuff, but the Nexus 4, like many other modern Android phones I suppose, uses MTP instead, which has the interesting feature of refusing to copy the original dates/timestamps of the files, using instead the date at which the files are being copied.
To make any change other than setting both timestamps to the current
time (i.e., times is not NULL, and both tv_nsec fields are not
UTIME_NOW and both tv_nsec fields are not UTIME_OMIT), either condition
2 or 3 above must apply.
As mentioned in another answer, on devices that use FUSE for SD card emulation (such as modern Nexus devices), only root can change timestamps of files in /sdcard. Since things like MTP and ADB don't run as root, you can't preserve the timestamps with these methods. However, if your device is rooted, you can fix the timestamps with a separate step afterward.
This is an Android Bug.It does not allow non-root user to change the modification date of files ( =18624 since the introduction of multi-user / sandbox with FUSE filesystem).And does not preserve the timestamp when copying files with MTP protocol ( =92635).
For videos or if you do not want to set the EXIF data just go to and upload your video / photos from there. It preserve the modification timestamp you have on your computer and since it is synced with your device you'll see the photo in the app, correctly sorted, as soon as you are done with the upload.
Use a synchronization tool like e.g. FolderSync, which should take care for timestamps accordingly. Synchronization tools should be specialized in handling all aspects of really maintaining synchronous copies -- including time stamps, of course.
Use SyncMe Wireless and network share. The timestamps are preserved and the sync is quick. I was able to back up without a computer to SD Card in Kingston MobileLite Wireless in 20 minutes, re-sync instant.
I suspect I'm inquiring about a bug that has crept into Directory Opus (DO) recently. I say that because for years I have used DO to keep multiple NAS units in sync via FTP and haven't seen this issue until recently. At first, I thought it was a problem with a new NAS I bought to replace a unit that failed, but I've tracked that down as far as I can go with Synology support, and they've convinced me it's a problem with DO instead.
So let me explain. The following two screenshots show side by side directory listings of a single directory on one of my NAS systems, a Synology DS 1520+ if it matters. In each case, the left pane shows the contents of the folder via an SMB connected network drive (U:), whereas the right pane shows the contents of the same folder via an FTP connection instead. And to be more precise, that's an SFTP connection (though I see the same problem with regular FTP) with timestamp-adjustment features disabled, so it should simply be showing the file times as they are on the NAS. The following first image is taken from FileZilla, and it shows everything correctly, whereas the second image is taken from DO, which has the wrong timestamps for all but the first file listed in the folder.
It might shed some light on things if you log into the FTP site using a command line FTP client, run the dir or list command, and see what the timestamps it returns are, and the differences (if any) relative to each other, as well as what the various software reports.
(It may be worth trying all of them as well, in case some do timestamps differently to others. That in turn could explain differences between clients, if one is using one command and another using another.)
It did turn out to be nothing to do with the time adjustments in our own code (i.e. the options in the addressbook) , but I found a call to _localtime64_s in the SFTP function that converts the incoming Unix timestamp to a Windows timestamp. Although the documentation for it is unclear, I suspected that it might be responsible.
It looks like that function takes daylight savings time of the source timestamp into account when converting to local time. The fix was as simple as changing that function to use _gmtime64_s and then doing the conversion to local time using the native Windows functions which ignore daylight savings.
A lot has happened since this thread started. We now have streaming as well as an API that allows getting timestamp. Addressing this kind of usecase should be much much simpler (we have contributors sharing feedback that it is working quite well). If you have more feedback to share, you are welcome.
Windows explorer is one of, if not THE worst FTP client you could ever use. We have nothing but trouble with it when we tried to use in our monthly free training sessions here at Opto 22.
There are plenty of other FTP clients out there, I suggest you download one and try it. (One I like is filezilla).
I would do that before you go down other more complicated roads like uploading your data to Google Docs.
By default, GetFileDateTime method uses MLST command if the server supports it and MDTM if it doesn't. Unlike MDTM, MLST always reports time in UTC time zone, which is converted to local time by the method. On the other hand, MDTM returns date time in UTC time zone on some FTP servers and in local time zone on others. So MLST is usually a better choice.However, your server doesn't support MLST, so the line has no effect. This means that there is actually no reason to keep it, but keeping it won't do any harm. But if you start using a different FTP server, make sure it works as expected.
df19127ead