replication.run_onetime ======================= Run replication task without creating it. This method is a job. .. raw:: html
ReplicationRunOnetimeArgs parameters.
No Additional PropertiesWhether 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.
Which 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 typesIP address for the active side to listen on for SSH+NETCAT transport. null if not applicable.
Minimum 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
Maximum 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
IP address for the passive side to connect to for SSH+NETCAT transport. null if not applicable.
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 to recursively replicate child datasets.
Array of dataset patterns to exclude from replication.
No Additional ItemsSend dataset properties along with snapshots.
Array of dataset property names to exclude from replication.
No Additional ItemsMust be at least 1 characters long
Object mapping dataset property names to override values during replication.
Each additional property must conform to the following schema
Type: stringWhether to use full ZFS replication.
Whether to enable encryption for the replicated datasets.
Whether replicated datasets should inherit encryption from parent. null if encryption is disabled.
Encryption key for replicated datasets. null if not specified.
Format of the encryption key.
HEX: Hexadecimal-encoded keyPASSPHRASE: Text passphrasenull: Not applicable when encryption is disabledFilesystem path where encryption key is stored. null if not using key file.
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 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" - "59"
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
Start time for the time window in HH:MM format.
"00:00"
    "06:30"
    "18:00"
    "23:00"
    End time for the time window in HH:MM format.
"00:00"
    "06:30"
    "18:00"
    "23:00"
    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.Number 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
Time unit for snapshot retention for custom retention policy. Only applies when retention_policy is CUSTOM.
Array of different retention schedules with their own cron schedules and lifetime settings.
No Additional ItemsCron schedule for when snapshot retention policies are applied.
No Additional Properties"00" - "59"
"00" - "23"
"1" - "31"
"1" (January) - "12" (December)
"1" (Monday) - "7" (Sunday)
Number of time units to retain snapshots.
Value must be greater or equal to 1
Time unit for snapshot retention.
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
Enable large block support for ZFS send streams.
Enable embedded block support for ZFS send streams.
Enable compressed ZFS send streams.
Number of retries before considering replication failed.
Value must be greater or equal to 1
Log level for replication task execution. Controls verbosity of replication logs.
Whether to exclude the mountpoint property from replication.
If true then replication will fail if target dataset already exists.
Mount destination file system.
Returns null on successful one-time replication execution.