docker-bg-sync icon indicating copy to clipboard operation
docker-bg-sync copied to clipboard

Default SYNC_PREFER=newer

Open normanlolx opened this issue 7 years ago • 4 comments
trafficstars

It seems confusing for some folks (and me) that after the initial sync the ongoing sync is only unidirectional (container to host only). Let's make it bidirectional by default. Refs #2

normanlolx avatar Feb 05 '18 20:02 normanlolx

Interestingly EugenMayer's docker-sync has decided to prefer the host: https://github.com/EugenMayer/docker-sync/issues/108

normanlolx avatar Feb 05 '18 20:02 normanlolx

I clarified this in the other issue, but just to restate it here: the sync is not unidirectional by default. Unison syncs in both directions, and if it's not, something else is wrong. Also, the current default is to prefer $SYNC_SOURCE for conflict resolutions, which should be the host FS (as in eugenmayer's docker-sync).

cweagans avatar Feb 06 '18 23:02 cweagans

@cweagans I guess this makes this PR unnecessary then. The problem then must be something else I guess.

normanlolx avatar Feb 06 '18 23:02 normanlolx

I think newer is more sane default, actually. I just need to do some testing and try to break it.

cweagans avatar Feb 06 '18 23:02 cweagans