This issue was originally on Sourceforge. At the time I'm writing this, the original ticket is still available at https://sourceforge.net/p/cryptsync-sk/tickets/185/. I am not the author of the SF ticket but am interested in seeing it resolved. The name of the issue has been changed to reflect comments made by the original submitter - specifically that the issue is not limited to command line invocation of cryptsync.
The original description is reproduced below, modified only to the above noted reference to command line use.
---------- original description ----------
I want two source folders synced with an encrypted folder. Call them "src1", "src2", and "dst".
Steps to recreate this bug:
- Put some files in src1, keep sr2 and dst empty
- Mirror src1 -> dst
- Mirrorback src2 <- dst (Now all three folders are correctly synced)
- Modify some files in src2
- Mirror src2 -> dst. (Files and their timestamps in dst are correctly updated)
- Mirrorback src1 <- dst. (BUG: files are updated, but timestamps are not properly updated, "date modified" is unchanged)
Incorrect timestamps have severe negative impact on future syncing.
Hope this can be fixed soon.
---------- end of original description ----------
My test using CS version 1.30 used a batch file with the line that reads
cryptsync /src:"R:" /dst:"S:" /pw:"password" /encnames /use7z /progress /syncall
so that I can use the same batch file on both client computer.
I am using Windows 10 - Professional on one computer and Home on the other.
One last comment, the author of the original ticket suggested a code change for CS version 1.2.7.338. The suggest change is as follows
---------- begin of changed code ----------
I fixed it by changing line 701 in FolderSync.cpp from
if (!DecryptFile(origpath, cryptpath, pt.password, it->second, pt.useGPG))
to
if (!DecryptFile(origpath, cryptpath, pt.password, cryptit->second, pt.useGPG))
---------- end of changed code ----------
Dave