snapshotting: support 'periodic' and 'manual' mode

1. Change config format to support multiple types
   of snapshotting modes.
2. Implement a hacky way to support periodic or completely
   manual snaphots.

In manual mode, the user has to trigger replication using the wakeup
mechanism after they took snapshots using their own tooling.

As indicated by the comment, a more general solution would be desirable,
but we want to get the release out and 'manual' mode is a feature that
some people requested...
This commit is contained in:
Christian Schwarz
2018-10-11 15:22:52 +02:00
parent 14febbeb4c
commit 4e16952ad9
11 changed files with 134 additions and 19 deletions
+3 -1
View File
@@ -11,5 +11,7 @@ jobs:
"secret": false
}
snapshotting:
snapshot_prefix: zrepl_
type: periodic
interval: 10m
prefix: zrepl_