pvesr <COMMAND> [ARGS] [OPTIONS]
pvesr create-local-job <id> <target>
[OPTIONS]
Create a new replication job
<id>
: [1-9][0-9]{2,8}-\d{1,9}
<target>
: <string>
--comment
<string>
--disable
<boolean>
--rate
<number> (1 - N)
--remove_job
<full | local>
--schedule
<string>
(default = */15
)
systemd
calendar events.
--source
<string>
pvesr delete <id>
[OPTIONS]
Mark replication job for removal.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
--force
<boolean>
(default = 0
)
--keep
<boolean>
(default = 0
)
pvesr disable <id>
Disable a replication job.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
pvesr enable <id>
Enable a replication job.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
pvesr finalize-local-job <id> [<extra-args>]
[OPTIONS]
Finalize a replication job. This removes all replications snapshots with timestamps different than <last_sync>.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
<extra-args>
: <array>
--last_sync
<integer> (0 - N)
pvesr help [OPTIONS]
Get help about specified command.
--extra-args
<array>
--verbose
<boolean>
pvesr list
List replication jobs.
pvesr prepare-local-job <id> [<extra-args>]
[OPTIONS]
Prepare for starting a replication job. This is called on the target node before replication starts. This call is for internal use, and return a JSON object on stdout. The method first test if VM <vmid> reside on the local node. If so, stop immediately. After that the method scans all volume IDs for snapshots, and removes all replications snapshots with timestamps different than <last_sync>. It also removes any unused volumes. Returns a hash with boolean markers for all volumes with existing replication snapshots.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
<extra-args>
: <array>
--force
<boolean>
(default = 0
)
--last_sync
<integer> (0 - N)
--parent_snapname
<string>
--scan
<string>
pvesr read <id>
Read replication job configuration.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
pvesr run [OPTIONS]
This method is called by the systemd-timer and executes all (or a specific) sync jobs.
--id
[1-9][0-9]{2,8}-\d{1,9}
--mail
<boolean>
(default = 0
)
--verbose
<boolean>
(default = 0
)
pvesr schedule-now <id>
Schedule replication job to start as soon as possible.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
pvesr set-state <vmid> <state>
Set the job replication state on migration. This call is for internal use. It will accept the job state as ja JSON obj.
<vmid>
: <integer> (1 - N)
<state>
: <string>
pvesr status [OPTIONS]
List status of all replication jobs on this node.
--guest
<integer> (1 - N)
pvesr update <id>
[OPTIONS]
Update replication job configuration.
<id>
: [1-9][0-9]{2,8}-\d{1,9}
--comment
<string>
--delete
<string>
--digest
<string>
--disable
<boolean>
--rate
<number> (1 - N)
--remove_job
<full | local>
--schedule
<string>
(default = */15
)
systemd
calendar events.
--source
<string>