-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add methods for auto resolve deletions #10
Comments
so if any side removes the file, it shall be removed everywhere, even if modified there since the last check? sounds dangerous. But yes, anyone, please feel free to implement an option to never/always propagate deletions... Say you have three nodes, one with no change, one with some change, and one with a deletion.
|
Since csync2 works on the "push" principle we can build tables like this (for csync2 v2.0):
Where P.S. This option should probably be called auto-force-delete |
I pick this up as I have plans to work the "auto" topic. Adding a separate auto-delete may be contra-productive (but nor excluded yet) in this context. My plan is to modify the auto syntax so that it accepts a set of options allowing it to be applied to fil patterns for example like: auto left for *.conf if "/usr/local/bin/some-script.sh" and may consider a delete= But like Lars did already pointed out this is quite dangerous and needs thinking. For instance in the table above I would discourage the fact that auto-delete=yes would simply win in both cases (modified or not) and fail otherwise (except left/right). This is introducing one strong option and removing today's intelligence about deletion (at least to my understanding). So I would add more granularity delete= never | keep[-always] (or restore) | always | normal (or standard) | possibly others... never : never delete any matching file (warn about missing) |
Docs said https://github.com/LINBIT/csync2/blob/master/doc/csync2.adoc#conflict-detection:
Maybe add some parameter just for auto resolve for deletetion?
auto-delete (yes|no)
?refs:
The text was updated successfully, but these errors were encountered: