Change transport format in zrepl config & parse it.

This commit is contained in:
Christian Schwarz
2017-04-29 20:10:09 +02:00
parent fd24096137
commit 2d57e15936
2 changed files with 109 additions and 13 deletions
+18 -8
View File
@@ -1,9 +1,18 @@
pools:
- name: offsite_backups
url: ssh://db2@backups1/db2/
- name:
transport:
ssh:
zrepl_identity: db2
host: backups1.example.com
user: root
port: 22
command: ssh
args: []
- name: local_mirror
url: local://mirrorpool/mirrors/tank
transport:
local:
pool: mirrorpool
pushs:
- to: offsite_backups
@@ -11,16 +20,17 @@ pushs:
- tank/var/db
- tank/usr/home
- to: local_mirror
datasets:
- tank
pulls:
- from: offsite
- from: offsite_backups
mapping: {
# like in sinks
}
- from: local_mirror
mapping: {
"tank/usr/home":"mirrorpool/foo/bar"
}
sinks:
# direct mapping