-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
automatic conflict resolution #408
Projects
Comments
This was referenced Feb 26, 2021
type: push # active side
...
conflict_resolution:
receiver_diverged:
# if there are no common snapshots between sender and receiver
no_common_snapshots:
# Option 1: fial
policy:
type: fail
# Option 2
policy:
type: conflict_copy
...
# Option 3
policy:
type: destroy #perhaps 'replace' would be a better name? |
type: push
...
conflict_resultion:
# what should happen if there is no corresponding receive-side file system
initial_replication:
# Option 1: fail
# Option 2: send most recent snapshot (current behavior)
# Option 3: send all snapshots on the sender |
grahamc
added a commit
to grahamc/zrepl
that referenced
this issue
Apr 15, 2021
…hots By configuring your push or pull job with: ```yaml conflict_resolution: initial_replication: replicate_all_snapshots: true ``` when a dataset is transfered for the first time, all snapshots on that dataset will be transfered. This is disabled by default, and only the most recent snapshot will be transfered. Based on the names in zrepl#408 (comment) though the more complicated options suggested in that issue are more Go than I know.
grahamc
added a commit
to grahamc/zrepl
that referenced
this issue
Apr 15, 2021
…hots By configuring your push or pull job with: ```yaml conflict_resolution: initial_replication: replicate_all_snapshots: true ``` when a dataset is transfered for the first time, all snapshots on that dataset will be transfered. This is disabled by default, and only the most recent snapshot will be transfered. Based on the names in zrepl#408 (comment) though the more complicated options suggested in that issue are more Go than I know.
grahamc
added a commit
to grahamc/zrepl
that referenced
this issue
Apr 15, 2021
```yaml conflict_resolution: initial_replication: replicate_all_snapshots: true ``` when a dataset is transfered for the first time, all snapshots on that dataset will be transfered. This is disabled by default, and only the most recent snapshot will be transfered. Based on the names in zrepl#408 (comment) though the more complicated options suggested in that issue are more Go than I know.
grahamc
added a commit
to grahamc/zrepl
that referenced
this issue
Apr 15, 2021
```yaml conflict_resolution: initial_replication: replicate_all_snapshots: true ``` when a dataset is transfered for the first time, all snapshots on that dataset will be transfered. This is disabled by default, and only the most recent snapshot will be transfered. Based on the names in zrepl#408 (comment) though the more complicated options suggested in that issue are more Go than I know.
problame
pushed a commit
that referenced
this issue
Apr 10, 2022
```yaml conflict_resolution: initial_replication: replicate_all_snapshots: true ``` when a dataset is transfered for the first time, all snapshots on that dataset will be transfered. This is disabled by default, and only the most recent snapshot will be transfered. Based on the names in #408 (comment) though the more complicated options suggested in that issue are more Go than I know.
problame
pushed a commit
that referenced
this issue
Apr 10, 2022
```yaml conflict_resolution: initial_replication: replicate_all_snapshots: true ``` when a dataset is transfered for the first time, all snapshots on that dataset will be transfered. This is disabled by default, and only the most recent snapshot will be transfered. Based on the names in #408 (comment) though the more complicated options suggested in that issue are more Go than I know.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zrepl should be able to resolve replication conflicts automatically.
Background / Use Cases
Replication conflicts are situations where there is something on the receiving side that prevents replication of one or more file systems from the sender to the receiver.
Examples and use cases:
zfs snapshot -r receivingpool@pre_upgrade_snapshot
UX
Renames are thus not actually part of the conflict resolution UX.
zrepl signal
(or similar) command allows the user to override the conflict resolution policy on a per-filesystem basis for the next replication attempt.Config Syntax:
Security Considerations
Implementation
The text was updated successfully, but these errors were encountered: