replication.run_onetime ======================= Run replication task without creating it. .. raw:: html
whether task will PUSH
or PULL
snapshots
method of snapshots transfer
* SSH
transfers snapshots via SSH connection. This method is supported everywhere but does not achieve
great performance
* SSH+NETCAT
uses unencrypted connection for data transfer. This can only be used in trusted networks
and requires a port (specified by range from netcat_active_side_port_min
to netcat_active_side_port_max
)
to be open on netcat_active_side
* LOCAL
replicates to or from localhost
Keychain Credential ID of type SSH_CREDENTIALS
Value must be greater or equal to 1
and lesser or equal to 65535
Value must be greater or equal to 1
and lesser or equal to 65535
whether SSH
and SSH+NETCAT
transports should use sudo (which is expected to be passwordless) to run zfs
command on the remote machine.
list of datasets to replicate snapshots from
Must contain a minimum of 1
items
dataset to put snapshots into
whether we should send dataset properties along with snapshots
Must be at least 1
characters long
Each additional property must conform to the following schema
Type: stringlist of periodic snapshot task IDs that are sources of snapshots for this replication task. Only push replication
tasks can be bound to periodic snapshot tasks.
All items must be unique
No Additional Itemslist of naming schemas for pull replication
No Additional Itemslist of naming schemas for push replication
No Additional Itemsreplicate all snapshots which names match specified regular expression
Must be at least 1
characters long
restricts when replication task with bound periodic snapshot tasks runs. For example, you can have periodic
snapshot tasks that run every 15 minutes, but only run replication task every hour.
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
will destroy all snapshots on target side and replicate everything from scratch if none of the snapshots on
target side matches source snapshots
controls destination datasets readonly property:
* SET
will set all destination datasets to readonly=on after finishing the replication
* REQUIRE
will require all existing destination datasets to have readonly=on property
* IGNORE
will avoid this kind of behavior
will prevent source snapshots from being deleted by retention of replication fails for some reason
specifies how to delete old snapshots on target side:
* SOURCE
deletes snapshots that are absent on source side
* CUSTOM
deletes snapshots that are older than lifetime_value
and lifetime_unit
* NONE
does not delete any snapshots
Value must be greater or equal to 1
Each field can either be a single value or a comma-separated list of values.
A "*" represents the full list of values.
"00" - "59"
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
Value must be greater or equal to 1
compresses SSH stream. Available only for SSH transport
limits speed of SSH stream. Available only for SSH transport
Value must be greater or equal to 1
number of retries before considering replication failed
Value must be greater or equal to 1
If true
then replication will fail if target dataset already exists