replication.update ================== Update a Replication Task with specific `id`. .. raw:: html
Name for replication task.
Must be at least 1
characters long
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
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.
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
Allow replication to run automatically on schedule or after bound periodic snapshot task.
Schedule to run replication task. Only auto
replication tasks without bound periodic snapshot tasks can have a schedule.
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
"00:00"
"06:30"
"18:00"
"23:00"
"00:00"
"06:30"
"18:00"
"23:00"
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)
"00:00"
"06:30"
"18:00"
"23:00"
"00:00"
"06:30"
"18:00"
"23:00"
Will only replicate snapshots that match schedule
or restrict_schedule
.
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
: Set all destination datasets to readonly=on after finishing the replication.REQUIRE
: Require all existing destination datasets to have readonly=on property.IGNORE
: Avoid this kind of behavior.Prevent source snapshots from being deleted by retention of replication fails for some reason.
How to delete old snapshots on target side:
SOURCE
: Delete snapshots that are absent on source side.CUSTOM
: Delete snapshots that are older than lifetime_value
and lifetime_unit
.NONE
: Do 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
Name for replication task.
Must be at least 1
characters long
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 of type SSH_CREDENTIALS
.
Distinguishes this Keychain Credential from others.
Must be at least 1
characters long
At least one of the two keys must be provided on creation.
No Additional PropertiesCan be omitted and automatically derived from the private key.
Keychain Credential ID.
Can be discovered with keychaincredential.remotesshhostkeyscan.
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
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.
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 tasks that are sources of snapshots for this replication task. Only push replication tasks can be bound to periodic snapshot tasks.
No Additional Items"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
"00:00"
"06:30"
"18:00"
"23:00"
"00:00"
"06:30"
"18:00"
"23:00"
List 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
Allow replication to run automatically on schedule or after bound periodic snapshot task.
Schedule to run replication task. Only auto
replication tasks without bound periodic snapshot tasks can have a schedule.
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
"00:00"
"06:30"
"18:00"
"23:00"
"00:00"
"06:30"
"18:00"
"23:00"
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)
"00:00"
"06:30"
"18:00"
"23:00"
"00:00"
"06:30"
"18:00"
"23:00"
Will only replicate snapshots that match schedule
or restrict_schedule
.
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
: Set all destination datasets to readonly=on after finishing the replication.REQUIRE
: Require all existing destination datasets to have readonly=on property.IGNORE
: Avoid this kind of behavior.Prevent source snapshots from being deleted by retention of replication fails for some reason.
How to delete old snapshots on target side:
SOURCE
: Delete snapshots that are absent on source side.CUSTOM
: Delete snapshots that are older than lifetime_value
and lifetime_unit
.NONE
: Do 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