zrepl/daemon
Christian Schwarz 2642c64303 make initial replication policy configurable (most_recent, all, fail)
Config:

```
- type: push
  ...
  conflict_resolution:
    initial_replication: most_recent | all | fali
```

The ``initial_replication`` option determines which snapshots zrepl
replicates if the filesystem has not been replicated before.
If ``most_recent`` (the default), the initial replication will only
transfer the most recent snapshot, while ignoring previous snapshots.
If all snapshots should be replicated, specify ``all``.
Use ``fail`` to make replication of the filesystem fail in case
there is no corresponding fileystem on the receiver.

Code-Level Changes, apart from the obvious:
- Rework IncrementalPath()'s return signature.
  Now returns an error for initial replications as well.
- Rename & rework it's consumer, resolveConflict().

Co-authored-by: Graham Christensen <graham@grahamc.com>

Fixes https://github.com/zrepl/zrepl/issues/550
Fixes https://github.com/zrepl/zrepl/issues/187
Closes https://github.com/zrepl/zrepl/pull/592
2022-06-26 14:36:59 +02:00
..
filters endpoint: refactor, fix stale holds on initial replication failure, zfs-abstractions subcmd, more efficient ZFS queries 2020-04-18 12:26:03 +02:00
hooks Reformat all files with make format. 2020-08-31 23:57:45 +02:00
job make initial replication policy configurable (most_recent, all, fail) 2022-06-26 14:36:59 +02:00
logging trace: hint debug env var in error when crashing due to active child tasks 2021-12-05 18:57:43 +01:00
nethelpers format source tree using goimports 2019-03-22 19:41:12 +01:00
pruner pruner + docs: less confusing type names, some comments, better docs for keep: not_replicated 2021-10-10 21:11:38 +02:00
snapper client/signal: Revert "add signal 'snapshot', rename existing signal 'wakeup' to 'replication'" 2021-03-25 22:26:17 +01:00
control.go daemon/control: make http server {Read,Write}Timeout envconst-configurable 2021-12-18 15:14:33 +01:00
daemon.go daemon: provide os.Environ() in zrepl status 2021-11-14 17:34:32 +01:00
main.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00
pprof.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00
prometheus.go [#307] add package trace, integrate it with logging, and adopt it throughout zrepl 2020-05-19 11:30:02 +02:00