]> git.proxmox.com Git - pve-manager.git/commit - PVE/CLI/pvesr.pm
pvesr prepare-local-job: new helper
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 29 May 2017 08:31:04 +0000 (10:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 31 May 2017 06:23:46 +0000 (08:23 +0200)
commitfae995063cddfdf06492fc045e8848f1d0a51394
tree06d08933b98f440b17101ed523d8e2ac4e6d86d4
parentf70997ea80139c6e4b493ce8c0eb0fb134e817f3
pvesr prepare-local-job: new helper

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.
PVE/CLI/pvesr.pm
PVE/Replication.pm