replication.run_onetime¶
Run replication task without creating it.
No Additional Items
Tuple Validation
Parameter 1: replication_run_onetime
replication_run_onetime
Type: objectNo Additional Properties
Direction
Type: enum (of string)Whether task will PUSH
or PULL
snapshots.
Must be one of:
- "PUSH"
- "PULL"
Transport
Type: enum (of string)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 fromnetcat_active_side_port_min
tonetcat_active_side_port_max
) to be open onnetcat_active_side
.LOCAL
replicates to or from localhost.
Must be one of:
- "SSH"
- "SSH+NETCAT"
- "LOCAL"
Ssh Credentials
Default: nullKeychain Credential ID of type SSH_CREDENTIALS
.
Netcat Active Side
Default: nullMust be one of:
- "LOCAL"
- "REMOTE"
Netcat Active Side Listen Address
Default: nullNetcat Active Side Port Min
Default: nullValue must be greater or equal to 1
and lesser or equal to 65535
Netcat Active Side Port Max
Default: nullValue must be greater or equal to 1
and lesser or equal to 65535
Netcat Passive Side Connect Address
Default: nullSudo
Type: boolean Default: falseSSH
and SSH+NETCAT
transports should use sudo (which is expected to be passwordless) to run zfs
command on the remote machine.
Source Datasets
Type: array of stringList of datasets to replicate snapshots from.
Must contain a minimum of 1
items
Each item of this array must be:
Target Dataset
Type: stringDataset to put snapshots into.
Recursive
Type: booleanExclude
Type: array of string Default: []No Additional Items
Each item of this array must be:
Properties
Type: boolean Default: trueSend dataset properties along with snapshots.
Properties Exclude
Type: array of string Default: []No Additional Items
Each item of this array must be:
Must be at least 1
characters long
Properties Override
Type: object Default: {}Each additional property must conform to the following schema
Type: stringReplicate
Type: boolean Default: falseEncryption
Type: boolean Default: falseEncryption Inherit
Default: nullEncryption Key
Default: nullEncryption Key Format
Default: nullMust be one of:
- "HEX"
- "PASSPHRASE"
Encryption Key Location
Default: nullPeriodic Snapshot Tasks
Type: array of integer Default: []List 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 ItemsEach item of this array must be:
Naming Schema
Type: array of string Default: []List of naming schemas for pull replication.
No Additional ItemsEach item of this array must be:
Also Include Naming Schema
Type: array of string Default: []List of naming schemas for push replication.
No Additional ItemsEach item of this array must be:
Name Regex
Default: nullReplicate 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.
ReplicationTimeCronModel
Type: objectNo Additional Properties
Minute
Type: string Default: "00"Hour
Type: string Default: "*""00" - "23"
Dom
Type: string Default: "*""1" - "31"
Month
Type: string Default: "*""1" (January) - "12" (December)
Dow
Type: string Default: "*""1" (Monday) - "7" (Sunday)
Begin
Type: string Default: "00:00""00:00"
"06:30"
"18:00"
"23:00"
End
Type: string Default: "23:59""00:00"
"06:30"
"18:00"
"23:00"
Allow From Scratch
Type: boolean Default: falseWill destroy all snapshots on target side and replicate everything from scratch if none of the snapshots on target side matches source snapshots.
Readonly
Type: enum (of string) Default: "SET"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.
Must be one of:
- "SET"
- "REQUIRE"
- "IGNORE"
Hold Pending Snapshots
Type: boolean Default: falsePrevent source snapshots from being deleted by retention of replication fails for some reason.
Retention Policy
Type: enum (of string)How to delete old snapshots on target side:
SOURCE
: Delete snapshots that are absent on source side.CUSTOM
: Delete snapshots that are older thanlifetime_value
andlifetime_unit
.NONE
: Do not delete any snapshots.
Must be one of:
- "SOURCE"
- "CUSTOM"
- "NONE"
Lifetime Value
Default: nullValue must be greater or equal to 1
Lifetime Unit
Default: nullMust be one of:
- "HOUR"
- "DAY"
- "WEEK"
- "MONTH"
- "YEAR"
Lifetimes
Type: array of object Default: []No Additional Items
Each item of this array must be:
ReplicationLifetimeModel
Type: objectNo Additional Properties
CronModel
Type: objectEach field can either be a single value or a comma-separated list of values.
A "*" represents the full list of values.
Minute
Type: string Default: "*""00" - "59"
Hour
Type: string Default: "*""00" - "23"
Dom
Type: string Default: "*""1" - "31"
Month
Type: string Default: "*""1" (January) - "12" (December)
Dow
Type: string Default: "*""1" (Monday) - "7" (Sunday)
Lifetime Value
Type: integerValue must be greater or equal to 1
Lifetime Unit
Type: enum (of string)Must be one of:
- "HOUR"
- "DAY"
- "WEEK"
- "MONTH"
- "YEAR"
Compression
Default: nullCompresses SSH stream. Available only for SSH transport.
Must be one of:
- "LZ4"
- "PIGZ"
- "PLZIP"
Speed Limit
Default: nullLimits speed of SSH stream. Available only for SSH transport.
Value must be greater or equal to 1
Large Block
Type: boolean Default: trueEmbed
Type: boolean Default: falseCompressed
Type: boolean Default: trueRetries
Type: integer Default: 5Number of retries before considering replication failed.
Value must be greater or equal to 1
Logging Level
Default: nullMust be one of:
- "DEBUG"
- "INFO"
- "WARNING"
- "ERROR"
Exclude Mountpoint Property
Type: boolean Default: trueOnly From Scratch
Type: boolean Default: falseIf true
then replication will fail if target dataset already exists.
Mount
Type: boolean Default: trueMount destination file system.
Result
Type: nullRequired roles: REPLICATION_TASK_WRITE