replication.run_onetime¶
Run replication task without creating it.
No Additional Items
Tuple Validation
Parameter 1: replication_run_onetime
replication_run_onetime
Type: objectReplicationRunOnetimeArgs parameters.
No Additional PropertiesDirection
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: nullWhich side actively establishes the netcat connection for SSH+NETCAT
transport.
LOCAL
: Local system initiates the connectionREMOTE
: Remote system initiates the connectionnull
: Not applicable for other transport types
Must be one of:
- "LOCAL"
- "REMOTE"
Netcat Active Side Listen Address
Default: nullIP address for the active side to listen on for SSH+NETCAT
transport. null
if not applicable.
Netcat Active Side Port Min
Default: nullMinimum port number in the range for netcat connections. null
if not applicable.
Value must be greater or equal to 1
and lesser or equal to 65535
Netcat Active Side Port Max
Default: nullMaximum port number in the range for netcat connections. null
if not applicable.
Value must be greater or equal to 1
and lesser or equal to 65535
Netcat Passive Side Connect Address
Default: nullIP address for the passive side to connect to for SSH+NETCAT
transport. null
if not applicable.
Sudo
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: booleanWhether to recursively replicate child datasets.
Exclude
Type: array of string Default: []Array of dataset patterns to exclude from replication.
No Additional ItemsEach item of this array must be:
Properties
Type: boolean Default: trueSend dataset properties along with snapshots.
Properties Exclude
Type: array of string Default: []Array of dataset property names to exclude from replication.
No Additional ItemsEach item of this array must be:
Must be at least 1
characters long
Properties Override
Type: object Default: {}Object mapping dataset property names to override values during replication.
Each additional property must conform to the following schema
Type: stringReplicate
Type: boolean Default: falseWhether to use full ZFS replication.
Encryption
Type: boolean Default: falseWhether to enable encryption for the replicated datasets.
Encryption Inherit
Default: nullWhether replicated datasets should inherit encryption from parent. null
if encryption is disabled.
Encryption Key
Default: nullEncryption key for replicated datasets. null
if not specified.
Encryption Key Format
Default: nullFormat of the encryption key.
HEX
: Hexadecimal-encoded keyPASSPHRASE
: Text passphrasenull
: Not applicable when encryption is disabled
Must be one of:
- "HEX"
- "PASSPHRASE"
Encryption Key Location
Default: nullFilesystem path where encryption key is stored. null
if not using key file.
Periodic 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""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)
Begin
Type: string Default: "00:00"Start time for the time window in HH:MM format.
"00:00"
"06:30"
"18:00"
"23:00"
End
Type: string Default: "23:59"End time for the time window in HH:MM format.
"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: nullNumber of time units to retain snapshots for custom retention policy. Only applies when retention_policy
is CUSTOM.
Value must be greater or equal to 1
Lifetime Unit
Default: nullTime unit for snapshot retention for custom retention policy. Only applies when retention_policy
is CUSTOM.
Must be one of:
- "HOUR"
- "DAY"
- "WEEK"
- "MONTH"
- "YEAR"
Lifetimes
Type: array of object Default: []Array of different retention schedules with their own cron schedules and lifetime settings.
No Additional ItemsEach item of this array must be:
ReplicationLifetimeModel
Type: objectNo Additional Properties
CronModel
Type: objectCron schedule for when snapshot retention policies are applied.
No Additional PropertiesMinute
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: integerNumber of time units to retain snapshots.
Value must be greater or equal to 1
Lifetime Unit
Type: enum (of string)Time unit for snapshot retention.
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: trueEnable large block support for ZFS send streams.
Embed
Type: boolean Default: falseEnable embedded block support for ZFS send streams.
Compressed
Type: boolean Default: trueEnable compressed ZFS send streams.
Retries
Type: integer Default: 5Number of retries before considering replication failed.
Value must be greater or equal to 1
Logging Level
Default: nullLog level for replication task execution. Controls verbosity of replication logs.
Must be one of:
- "DEBUG"
- "INFO"
- "WARNING"
- "ERROR"
Exclude Mountpoint Property
Type: boolean Default: trueWhether to exclude the mountpoint property from replication.
Only 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: nullReturns null
on successful one-time replication execution.
Required roles: REPLICATION_TASK_WRITE