]> git.proxmox.com Git - pve-docs.git/blame - pvesr.1-synopsis.adoc
vzdump: fix few typos and polish
[pve-docs.git] / pvesr.1-synopsis.adoc
CommitLineData
efcfc6d8
DM
1*pvesr* `<COMMAND> [ARGS] [OPTIONS]`
2
5d9c884c
DM
3*pvesr create-local-job* `<id> <target>` `[OPTIONS]`
4
5Create a new replication job
6
7`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
8
9Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
10
11`<target>`: `<string>` ::
12
13Target node.
14
2489d6df 15`--comment` `<string>` ::
5d9c884c
DM
16
17Description.
18
2489d6df 19`--disable` `<boolean>` ::
5d9c884c
DM
20
21Flag to disable/deactivate the entry.
22
2489d6df 23`--rate` `<number> (1 - N)` ::
5d9c884c
DM
24
25Rate limit in mbps (megabytes per second) as floating point number.
26
2489d6df 27`--remove_job` `<full | local>` ::
5d9c884c
DM
28
29Mark 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.
30
2489d6df 31`--schedule` `<string>` ('default =' `*/15`)::
5d9c884c
DM
32
33Storage replication schedule. The format is a subset of `systemd` calender events.
34
5d9c884c
DM
35*pvesr delete* `<id>` `[OPTIONS]`
36
37Mark replication job for removal.
38
39`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
40
41Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
42
2489d6df 43`--force` `<boolean>` ('default =' `0`)::
5d9c884c
DM
44
45Will remove the jobconfig entry, but will not cleanup.
46
2489d6df 47`--keep` `<boolean>` ('default =' `0`)::
5d9c884c
DM
48
49Keep replicated data at target (do not remove).
50
5d9c884c
DM
51*pvesr disable* `<id>`
52
53Disable a replication job.
54
55`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
56
57Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
58
5d9c884c
DM
59*pvesr enable* `<id>`
60
61Enable a replication job.
62
63`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
64
65Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
66
5d9c884c
DM
67*pvesr finalize-local-job* `<id> [<extra-args>]` `[OPTIONS]`
68
69Finalize a replication job. This removes all replications snapshots with
70timestamps different than <last_sync>.
71
72`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
73
74Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
75
76`<extra-args>`: `<array>` ::
77
78The list of volume IDs to consider.
79
2489d6df 80`--last_sync` `<integer> (0 - N)` ::
5d9c884c
DM
81
82Time (UNIX epoch) of last successful sync. If not specified, all replication snapshots gets removed.
83
35a75dd3 84*pvesr help* `[OPTIONS]`
efcfc6d8
DM
85
86Get help about specified command.
87
35a75dd3 88`--extra-args` `<array>` ::
efcfc6d8 89
35a75dd3 90Shows help for a specific command
efcfc6d8 91
2489d6df 92`--verbose` `<boolean>` ::
efcfc6d8
DM
93
94Verbose output format.
95
5d9c884c 96*pvesr list*
efcfc6d8
DM
97
98List replication jobs.
99
5d9c884c
DM
100*pvesr prepare-local-job* `<id> [<extra-args>]` `[OPTIONS]`
101
102Prepare for starting a replication job. This is called on the target node
103before replication starts. This call is for internal use, and return a JSON
104object on stdout. The method first test if VM <vmid> reside on the local
105node. If so, stop immediately. After that the method scans all volume IDs
106for snapshots, and removes all replications snapshots with timestamps
107different than <last_sync>. It also removes any unused volumes. Returns a
108hash with boolean markers for all volumes with existing replication
109snapshots.
110
111`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
112
113Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
114
115`<extra-args>`: `<array>` ::
116
117The list of volume IDs to consider.
118
2489d6df 119`--force` `<boolean>` ('default =' `0`)::
5d9c884c
DM
120
121Allow to remove all existion volumes (empty volume list).
122
2489d6df 123`--last_sync` `<integer> (0 - N)` ::
5d9c884c
DM
124
125Time (UNIX epoch) of last successful sync. If not specified, all replication snapshots get removed.
126
2489d6df 127`--parent_snapname` `<string>` ::
5d9c884c
DM
128
129The name of the snapshot.
130
2489d6df 131`--scan` `<string>` ::
5d9c884c
DM
132
133List of storage IDs to scan for stale volumes.
134
5d9c884c
DM
135*pvesr read* `<id>`
136
137Read replication job configuration.
138
139`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
140
141Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
142
5d9c884c
DM
143*pvesr run* `[OPTIONS]`
144
145This method is called by the systemd-timer and executes all (or a specific)
146sync jobs.
147
2489d6df 148`--id` `[1-9][0-9]{2,8}-\d{1,9}` ::
5d9c884c
DM
149
150Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
151
35a75dd3 152`--mail` `<boolean>` ('default =' `0`)::
5d9c884c 153
35a75dd3 154Send an email notification in case of a failure.
5d9c884c 155
35a75dd3 156`--verbose` `<boolean>` ('default =' `0`)::
5d9c884c 157
35a75dd3 158Print more verbose logs to stdout.
5d9c884c
DM
159
160*pvesr schedule-now* `<id>`
161
162Schedule replication job to start as soon as possible.
163
164`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
165
166Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
167
5d9c884c
DM
168*pvesr set-state* `<vmid> <state>`
169
170Set the job replication state on migration. This call is for internal use.
171It will accept the job state as ja JSON obj.
172
173`<vmid>`: `<integer> (1 - N)` ::
174
175The (unique) ID of the VM.
176
177`<state>`: `<string>` ::
178
179Job state as JSON decoded string.
180
5d9c884c
DM
181*pvesr status* `[OPTIONS]`
182
183List status of all replication jobs on this node.
184
2489d6df 185`--guest` `<integer> (1 - N)` ::
5d9c884c
DM
186
187Only list replication jobs for this guest.
188
5d9c884c
DM
189*pvesr update* `<id>` `[OPTIONS]`
190
191Update replication job configuration.
192
193`<id>`: `[1-9][0-9]{2,8}-\d{1,9}` ::
194
195Replication Job ID. The ID is composed of a Guest ID and a job number, separated by a hyphen, i.e. '<GUEST>-<JOBNUM>'.
196
2489d6df 197`--comment` `<string>` ::
5d9c884c
DM
198
199Description.
200
2489d6df 201`--delete` `<string>` ::
5d9c884c
DM
202
203A list of settings you want to delete.
204
2489d6df 205`--digest` `<string>` ::
5d9c884c
DM
206
207Prevent changes if current configuration file has different SHA1 digest. This can be used to prevent concurrent modifications.
208
2489d6df 209`--disable` `<boolean>` ::
5d9c884c
DM
210
211Flag to disable/deactivate the entry.
212
2489d6df 213`--rate` `<number> (1 - N)` ::
5d9c884c
DM
214
215Rate limit in mbps (megabytes per second) as floating point number.
216
2489d6df 217`--remove_job` `<full | local>` ::
5d9c884c
DM
218
219Mark 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.
220
2489d6df 221`--schedule` `<string>` ('default =' `*/15`)::
efcfc6d8 222
5d9c884c 223Storage replication schedule. The format is a subset of `systemd` calender events.
efcfc6d8
DM
224
225