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