How i can use unison to sync folders with the latest modification time of its file
Example :-
folder_1/file.txt changed at 12:30
folder_2/file.txt changed at 12:35
i wanna execute ./unison to give me the following result :-
update file with regards to latest modification time so that update file folder_1/file.txt to became the same file folder_2.file.txt
You can’t.
Unison works by comparing both files with their last synchronized version. If both have changed, and the end result is not identical, they are marked as a conflict. Although in that case a merge program can be invoked to resolve the conflict, the modification time plays no role at all in the whole process.
From the manual: