I try Unison. It's two-way file synchronization software yes ??.

Sooner or later I have to handle collisions (someone/something modified both files - How i can merge changes or just overwrite older version).

In other word i wanna 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

link|improve this question
i want to sync two folder biased on latest modification time the case [Sooner or later I have to handle collisions (someone/something modified both files - How i can merge changes or just overwrite older version).] is appear – Eng Al-Rawabdeh Aug 2 '11 at 10:15
i will delete the Unix and aix tag "sorry" .. yes my question related to unison tool not to os :) – Eng Al-Rawabdeh Aug 2 '11 at 10:32
feedback

1 Answer

up vote 0 down vote accepted

Use the option -prefer newer, see also the unison manual

link|improve this answer
i have another ... when i delete folder from server the unison also delete it from another server but i want to disable delete and enable copy i need always the folder have the same file – Eng Al-Rawabdeh Aug 3 '11 at 12:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.