With one dataset I get always an error, that the dataset can not be transferred, because was modified. " cannot receive incremental stream: destination zroot/d876/zroot/jails/www has been modified"
Apparently by auto mounting the dataset, changes to the dataset occur and subsequent snapshot transfers start to fail.
I can get get it resolved by using rollback. But it is not very convinient to watch for those errors and do rollbacks when needed. Is there any more elegant way how to deal with this?
One solution would be to have mounted read only.
If I want to avoid mounting I have to use "canmount": "off". Looks like canmount "noauto" has no effect.
Why canmount "noauto" has no effect? Would have readonly property have effect?
Is there a way how to avoid it? The mount points should never collide as each jail is home to one server or other, not both. And the backup is done to the other server.
My /usr/local/etc/zrepl/zrepl.yml is
Apparently by auto mounting the dataset, changes to the dataset occur and subsequent snapshot transfers start to fail.
I can get get it resolved by using rollback. But it is not very convinient to watch for those errors and do rollbacks when needed. Is there any more elegant way how to deal with this?
One solution would be to have mounted read only.
If I want to avoid mounting I have to use "canmount": "off". Looks like canmount "noauto" has no effect.
Why canmount "noauto" has no effect? Would have readonly property have effect?
Is there a way how to avoid it? The mount points should never collide as each jail is home to one server or other, not both. And the backup is done to the other server.
My /usr/local/etc/zrepl/zrepl.yml is
YAML:
- type: sink
name: sink
root_fs: "zroot"
serve:
type: tcp
listen: "10.1.5.50:8888"
clients: {
"10.1.8.76": "d876"
}
recv:
placeholder:
encryption: inherit
properties:
override: {
# "canmount": "noauto"
"canmount": "off"
}
YAML:
- type: push
name: d876_to_d550
connect:
type: tcp
address: "10.1.5.50:8888"
# "zroot/jails/home<": true,
filesystems: {
"zroot/jails<": true,
"zroot/jails": false,
"zroot/jails/dbZFSino": false,
"zroot/jails/dbZFSino2": false,
"zroot/jails/homer": false,
"zroot/jails/dbZFS":false
}
send:
bandwidth_limit:
max: 23.5 MiB
send_properties: true
snapshotting:
type: periodic
prefix: zrepl_
interval: 10m
pruning:
keep_sender:
- type: not_replicated
- type: last_n
count: 10
keep_receiver:
- type: grid
grid: 1x1h(keep=all) | 24x1h | 30x1d | 6x30d
regex: "^zrepl_"