config: PushACLs, sinks are also just ClientMappings & LOCAL_TRANSPORT_IDENTITY

This commit is contained in:
Christian Schwarz
2017-04-30 17:55:11 +02:00
parent ac5a911c64
commit 3e0c758d7f
2 changed files with 50 additions and 32 deletions
+12 -10
View File
@@ -2,17 +2,10 @@ pools:
- name: offsite_backups
transport:
ssh:
zrepl_identity: db2
host: backups1.example.com
host: 192.168.122.6
user: root
port: 22
command: ssh
args: []
- name: local_mirror
transport:
local:
pool: mirrorpool
identity_file: /etc/zrepl/identities/offsite_backups
pushs:
- to: offsite_backups
@@ -26,7 +19,9 @@ pulls:
# like in sinks
}
- from: local_mirror
# local replication, only allowed in pull mode
# the from name 'local' is reserved for this purpose
- from: local
mapping: {
"tank/usr/home":"mirrorpool/foo/bar"
}
@@ -79,3 +74,10 @@ sinks:
"*": backups/special_snowflake/remainingbackup
# NOTE: ^ alignment, should be possible, looks nicer
}
pull_acls:
# same synatx as in sinks, but the returned mapping does not matter
- from: office_backup
mapping: {
"tank/usr/home":"notnull"
}