*pvesr* ` [ARGS] [OPTIONS]` *pvesr create-local-job* ` ` `[OPTIONS]` Create a new replication job ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. ``: `` :: Target node. `--comment` `` :: Description. `--disable` `` :: Flag to disable/deactivate the entry. `--rate` ` (1 - N)` :: Rate limit in mbps (megabytes per second) as floating point number. `--remove_job` `` :: Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file. `--schedule` `` ('default =' `*/15`):: Storage replication schedule. The format is a subset of `systemd` calender events. `--source` `` :: Source of the replication. *pvesr delete* `` `[OPTIONS]` Mark replication job for removal. ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. `--force` `` ('default =' `0`):: Will remove the jobconfig entry, but will not cleanup. `--keep` `` ('default =' `0`):: Keep replicated data at target (do not remove). *pvesr disable* `` Disable a replication job. ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. *pvesr enable* `` Enable a replication job. ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. *pvesr finalize-local-job* ` []` `[OPTIONS]` Finalize a replication job. This removes all replications snapshots with timestamps different than . ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. ``: `` :: The list of volume IDs to consider. `--last_sync` ` (0 - N)` :: Time (UNIX epoch) of last successful sync. If not specified, all replication snapshots gets removed. *pvesr help* `[OPTIONS]` Get help about specified command. `--extra-args` `` :: Shows help for a specific command `--verbose` `` :: Verbose output format. *pvesr list* List replication jobs. *pvesr prepare-local-job* ` []` `[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 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 . It also removes any unused volumes. Returns a hash with boolean markers for all volumes with existing replication snapshots. ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. ``: `` :: The list of volume IDs to consider. `--force` `` ('default =' `0`):: Allow to remove all existion volumes (empty volume list). `--last_sync` ` (0 - N)` :: Time (UNIX epoch) of last successful sync. If not specified, all replication snapshots get removed. `--parent_snapname` `` :: The name of the snapshot. `--scan` `` :: List of storage IDs to scan for stale volumes. *pvesr read* `` Read replication job configuration. ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. *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}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. `--mail` `` ('default =' `0`):: Send an email notification in case of a failure. `--verbose` `` ('default =' `0`):: Print more verbose logs to stdout. *pvesr schedule-now* `` Schedule replication job to start as soon as possible. ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. *pvesr set-state* ` ` Set the job replication state on migration. This call is for internal use. It will accept the job state as ja JSON obj. ``: ` (1 - N)` :: The (unique) ID of the VM. ``: `` :: Job state as JSON decoded string. *pvesr status* `[OPTIONS]` List status of all replication jobs on this node. `--guest` ` (1 - N)` :: Only list replication jobs for this guest. *pvesr update* `` `[OPTIONS]` Update replication job configuration. ``: `[1-9][0-9]{2,8}-\d{1,9}` :: Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '-'. `--comment` `` :: Description. `--delete` `` :: A list of settings you want to delete. `--digest` `` :: Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications. `--disable` `` :: Flag to disable/deactivate the entry. `--rate` ` (1 - N)` :: Rate limit in mbps (megabytes per second) as floating point number. `--remove_job` `` :: Mark the replication job for removal. The job will remove all local replication snapshots. When set to 'full', it also tries to remove replicated volumes on the target. The job then removes itself from the configuration file. `--schedule` `` ('default =' `*/15`):: Storage replication schedule. The format is a subset of `systemd` calender events. `--source` `` :: Source of the replication.