Unison preserve directory time
Asked Answered
W

2

7

In the Unison (two way file syncing program) manual, when you set the -times=true preference, only the time stamps of the files are kept unchanged, not the directores:

From the Manual:

times When this flag is set to true, file modification times (but not directory modtimes) are propagated.

I wanted to see if there is any way the directory time could also be preserved during a sync?

Worthless answered 5/3, 2015 at 5:10 Comment(0)
B
3

This open issue says that it's not possible, and non-trivial to implement.

You could unison first, then rsync -r --times --size-only --existing afterwards to sync just the times on paths which already exist.

Berk answered 8/10, 2019 at 5:8 Comment(0)
S
2

After looking through the Unison manual, it appears that that answer to this question is No.

Saavedra answered 19/12, 2015 at 20:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.