Preserve Folder and File Dates

Get help for specific problems
S_H
Posts: 3
Joined: 22 Feb 2019

Post by S_H

I have looked through the help pages but I do not see a way to preserve file/folder dates. I select "mirror" and the file/folders in the sync'd directory all have today's date. What am I doing wrong?
User avatar
Plerry
Posts: 1031
Joined: 22 Aug 2012

Post by Plerry

Folders copied in FreeFileSync (presently ?) always have "today's" date.
For files it depends on the protocol.
SMB/CIFS/Samba should retain file dates, while e.g. most (all?) FTP/SFTP variants do not support retaining file dates.
S_H
Posts: 3
Joined: 22 Feb 2019

Post by S_H

Folders copied in FreeFileSync (presently ?) always have "today's" date.
For files it depends on the protocol.
SMB/CIFS/Samba should retain file dates, while e.g. most (all?) FTP/SFTP variants do not support retaining file dates. Plerry, 25 Feb 2019, 07:44
Why is there not a way to retain folder dates? This copy is between two virtual drives in a VM.
User avatar
Plerry
Posts: 1031
Joined: 22 Aug 2012

Post by Plerry

The FFS behavior is similar to copying a folder e.g. in Windows (File) Explorer.
When copying a folder with files in it to a new location,
the file-dates are retained in the new location,
but the folder-date(s) are as per the moment of making the copy.
This applies both to the modified- and the create-date of folders.
S_H
Posts: 3
Joined: 22 Feb 2019

Post by S_H

The FFS behavior is similar to copying a folder e.g. in Windows (File) Explorer.
When copying a folder with files in it to a new location,
the file-dates are retained in the new location,
but the folder-date(s) are as per the moment of making the copy.
This applies both to the modified- and the create-date of folders. Plerry, 27 Feb 2019, 11:54
Ah that is unfortunate. It would be great if there was a way to preserve the folder dates. Hopefully in a future release or is this not possible?
GateArray
Posts: 1
Joined: 20 Aug 2019

Post by GateArray

The only feature that this fantastic software is missing. Sometimes it is really necessary to create a tree exactly as the origin... directory date too.

Actually I use the workaround with ROBOCOPY using "/CREATE" switch to create / fix the folders date

I hope this possibility will be present in a future release
xCSxXenon
Posts: 529
Joined: 11 Jun 2019

Post by xCSxXenon

As long as FFS uses the basic file manipulation, it won't be possible. As Plerry stated, it's using the same process that a user would when manually syncing files. It is just able to create a "table of contents" of differences and can enact the copy/move/delete commands much faster. It would have to use some variation(s) of robocopy or Xcopy to retain folder meta-data.