VirtualBox

source: vbox/trunk/doc/manual/en_US/man_VBoxManage-snapshot.xml

Last change on this file was 99497, checked in by vboxsync, 13 months ago

manual: Split out the topics of converted manpages into separate files and generate ditamap files for each manpage to avoid needing to hardcode anything in UserManual.xml. This means that the topics inside a manpage can be supressed from the toc, but otoh, they get numbered (with 4.x). The per-topic files are named by refentry/refsect1/refsect2 @id and are currently not cleaned up by 'kmk clean'. bugref:10302

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 15.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 manpage, user manual, usage: VBoxManage snapshot
4-->
5<!--
6 Copyright (C) 2006-2023 Oracle and/or its affiliates.
7
8 This file is part of VirtualBox base platform packages, as
9 available from https://www.virtualbox.org.
10
11 This program is free software; you can redistribute it and/or
12 modify it under the terms of the GNU General Public License
13 as published by the Free Software Foundation, in version 3 of the
14 License.
15
16 This program is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, see <https://www.gnu.org/licenses>.
23
24 SPDX-License-Identifier: GPL-3.0-only
25-->
26<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
27 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"[
28<!ENTITY % all.entities SYSTEM "all-entities.ent">
29%all.entities;
30]>
31<refentry id="vboxmanage-snapshot" lang="en">
32 <refentryinfo>
33 <pubdate>$Date: 2023-04-21 01:55:02 +0000 (Fri, 21 Apr 2023) $</pubdate>
34 <title>VBoxManage snapshot</title>
35 </refentryinfo>
36
37 <refmeta>
38 <refentrytitle>VBoxManage-snapshot</refentrytitle>
39 <manvolnum>1</manvolnum>
40 </refmeta>
41
42 <refnamediv>
43 <refname>VBoxManage-snapshot</refname>
44 <refpurpose>manage virtual machine snapshots</refpurpose>
45 <refclass>&product-name;</refclass>
46 </refnamediv>
47
48 <refsynopsisdiv>
49 <cmdsynopsis id="synopsis-vboxmanage-snapshot">
50<!-- The 'id' is mandatory and must start with 'synopsis-'. -->
51 <command>VBoxManage snapshot</command>
52 <group choice="req">
53 <arg choice="plain"><replaceable>uuid</replaceable></arg>
54 <arg choice="plain"><replaceable>vmname</replaceable></arg>
55 </group>
56 </cmdsynopsis>
57
58 <cmdsynopsis id="synopsis-vboxmanage-snapshot-take">
59 <command>VBoxManage snapshot</command>
60 <group choice="req">
61 <arg choice="plain"><replaceable>uuid</replaceable></arg>
62 <arg choice="plain"><replaceable>vmname</replaceable></arg>
63 </group>
64
65 <arg choice="plain">take</arg>
66
67 <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
68
69 <arg>--description=<replaceable>description</replaceable></arg>
70
71 <arg>--live</arg>
72
73 <arg>--uniquename Number,Timestamp,Space,Force</arg>
74 </cmdsynopsis>
75
76 <cmdsynopsis id="synopsis-vboxmanage-snapshot-delete">
77 <command>VBoxManage snapshot</command>
78 <group choice="req">
79 <arg choice="plain"><replaceable>uuid</replaceable></arg>
80 <arg choice="plain"><replaceable>vmname</replaceable></arg>
81 </group>
82
83 <arg choice="plain">delete</arg>
84
85 <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
86 </cmdsynopsis>
87
88 <cmdsynopsis id="synopsis-vboxmanage-snapshot-restore">
89 <command>VBoxManage snapshot</command>
90 <group choice="req">
91 <arg choice="plain"><replaceable>uuid</replaceable></arg>
92 <arg choice="plain"><replaceable>vmname</replaceable></arg>
93 </group>
94
95 <arg choice="plain">restore</arg>
96
97 <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
98 </cmdsynopsis>
99
100 <cmdsynopsis id="synopsis-vboxmanage-snapshot-restorecurrent">
101 <command>VBoxManage snapshot</command>
102 <group choice="req">
103 <arg choice="plain"><replaceable>uuid</replaceable></arg>
104 <arg choice="plain"><replaceable>vmname</replaceable></arg>
105 </group>
106
107 <arg choice="plain">restorecurrent</arg>
108 </cmdsynopsis>
109
110 <cmdsynopsis id="synopsis-vboxmanage-snapshot-edit">
111 <command>VBoxManage snapshot</command>
112 <group choice="req">
113 <arg choice="plain"><replaceable>uuid</replaceable></arg>
114 <arg choice="plain"><replaceable>vmname</replaceable></arg>
115 </group>
116
117 <arg choice="plain">edit</arg>
118
119 <group choice="req">
120 <arg choice="plain"><replaceable>snapshot-name</replaceable></arg>
121 <arg choice="plain">--current</arg>
122 </group>
123
124 <arg>--description=<replaceable>description</replaceable></arg>
125
126 <arg>--name=<replaceable>new-name</replaceable></arg>
127 </cmdsynopsis>
128
129 <cmdsynopsis id="synopsis-vboxmanage-snapshot-list">
130 <command>VBoxManage snapshot</command>
131 <group choice="req">
132 <arg choice="plain"><replaceable>uuid</replaceable></arg>
133 <arg choice="plain"><replaceable>vmname</replaceable></arg>
134 </group>
135
136 <arg choice="plain">list</arg>
137
138 <group>
139 <arg choice="plain">--details</arg>
140 <arg choice="plain">--machinereadable</arg>
141 </group>
142 </cmdsynopsis>
143
144 <cmdsynopsis id="synopsis-vboxmanage-snapshot-showvminfo">
145 <command>VBoxManage snapshot</command>
146 <group choice="req">
147 <arg choice="plain"><replaceable>uuid</replaceable></arg>
148 <arg choice="plain"><replaceable>vmname</replaceable></arg>
149 </group>
150
151 <arg choice="plain">showvminfo</arg>
152
153 <arg choice="req"><replaceable>snapshot-name</replaceable></arg>
154 </cmdsynopsis>
155 </refsynopsisdiv>
156
157 <refsect1 id="vboxmanage-snapshot-description">
158 <title>Description</title>
159 <para>
160 The <command>VBoxManage snapshot</command> command manages
161 snapshots.
162 </para>
163 <para>
164 &product-name; uses the snapshot to capture the state of a virtual
165 machine (VM). You can later use the snapshot to revert to the
166 state described by the snapshot.
167 </para>
168 <para>
169 A snapshot is a complete copy of a VM's settings. If you take the
170 snapshot while the VM is running, the snapshot also includes the
171 VM's state file.
172 </para>
173 <para>
174 After you take a snapshot, &product-name; creates a
175 <emphasis>differencing hard disk</emphasis> for each normal hard
176 disk that is associated with the host machine. When you restore a
177 snapshot, &product-name; uses these differencing files to quickly
178 reset the contents of the VM's virtual hard disks.
179 </para>
180 <para>
181 For each <command>VBoxManage snapshot</command> command, you must
182 specify the name or the universal unique identifier (UUID) of the
183 VM for which you want to take a snapshot.
184 </para>
185 <refsect2 id="vboxmanage-snapshot-common-args">
186 <title>General Command Operand</title>
187 <variablelist>
188 <varlistentry>
189 <term><option><replaceable>uuid</replaceable> | <replaceable>vmname</replaceable></option></term>
190 <listitem><para>
191 Specifies the UUID or name of the VM.
192 </para></listitem>
193 </varlistentry>
194 </variablelist>
195 </refsect2>
196 <refsect2 id="vboxmanage-snapshot-take">
197 <title>Take a Snapshot of a Virtual Machine</title>
198 <remark role="help-copy-synopsis"/>
199 <para>
200 The <command>VBoxManage snapshot take</command> command takes a
201 snapshot of the current state of the VM. You must supply a name
202 for the snapshot and can optionally supply a description. The
203 new snapshot is inserted into the snapshots tree as a child of
204 the current snapshot and then becomes the new current snapshot.
205 </para>
206 <variablelist>
207 <varlistentry>
208 <term><option>--description=<replaceable>description</replaceable></option></term>
209 <listitem><para>
210 Specifies a description of the snapshot.
211 </para></listitem>
212 </varlistentry>
213 <varlistentry>
214 <term><option>--live</option></term>
215 <listitem><para>
216 Specifies that the VM is not stopped while you create the
217 snapshot. This operation is know as live snapshotting.
218 </para></listitem>
219 </varlistentry>
220 <varlistentry>
221 <term><option>--uniquename Number,Timestamp,Space,Force</option></term>
222 <listitem><para>
223 TBD.
224 </para><remark>
225 What does this option do and how is it used?
226 </remark></listitem>
227 </varlistentry>
228 <varlistentry>
229 <term><replaceable>snapshot-name</replaceable></term>
230 <listitem><para>
231 Specifies the name of the snapshot to create.
232 </para></listitem>
233 </varlistentry>
234 </variablelist>
235 </refsect2>
236 <refsect2 id="vboxmanage-snapshot-delete">
237 <title>Delete a Snapshot</title>
238 <remark role="help-copy-synopsis"/>
239 <para>
240 The <command>VBoxManage snapshot delete</command> command
241 removes the specified snapshot.
242 </para>
243 <para>
244 The delete operation may take some time to finish. This is
245 because the differencing images that are associated with the
246 snapshot may need to be merged with their child differencing
247 images.
248 </para>
249 <variablelist>
250 <varlistentry>
251 <term><replaceable>snapshot-name</replaceable></term>
252 <listitem><para>
253 Specifies the UUID or name of the snapshot.
254 </para></listitem>
255 </varlistentry>
256 </variablelist>
257 </refsect2>
258 <refsect2 id="vboxmanage-snapshot-restore">
259 <title>Restore a Snapshot</title>
260 <remark role="help-copy-synopsis"/>
261 <para>
262 The <command>VBoxManage snapshot restore</command> command
263 restores the specified snapshot. This operation resets the VM's
264 settings and current state to that of the snapshot. The state of
265 the VM on which you restore a snapshot is lost. When restored,
266 the specified snapshot becomes the new current snapshot and
267 subsequent snapshots are children of that snapshot.
268 </para>
269 <variablelist>
270 <varlistentry>
271 <term><replaceable>snapshot-name</replaceable></term>
272 <listitem><para>
273 Specifies the UUID or name of the snapshot.
274 </para></listitem>
275 </varlistentry>
276 </variablelist>
277 </refsect2>
278 <refsect2 id="vboxmanage-snapshot-restorecurrent">
279 <title>Restore the Current Snapshot</title>
280 <remark role="help-copy-synopsis"/>
281 <para>
282 The <command>VBoxManage snapshot restorecurrent</command>
283 command restores the current snapshot. The current snapshot is
284 the one from which the current state is derived. This command is
285 equivalent to using the <command>VBoxManage snapshot
286 restore</command> command and specifying the name or UUID of the
287 current snapshot.
288 </para>
289 </refsect2>
290 <refsect2 id="vboxmanage-snapshot-edit">
291 <title>Change the Name or Description of an Existing Snapshot</title>
292 <remark role="help-copy-synopsis"/>
293 <para>
294 The <command>VBoxManage snapshot edit</command> command enables
295 you to change the name or the description of a specified
296 snapshot.
297 </para>
298 <variablelist>
299 <varlistentry>
300 <term><replaceable>snapshot-name</replaceable></term>
301 <listitem><para>
302 Specifies the UUID or name of the snapshot to edit.
303 </para><para>
304 This option is mutually exclusive with the
305 <option>--current</option> option.
306 </para></listitem>
307 </varlistentry>
308 <varlistentry>
309 <term><option>--current</option></term>
310 <listitem><para>
311 Specifies that you update the current version of the
312 snapshot.
313 </para><para>
314 This option is mutually exclusive with a specific snapshot
315 name or its UUID.
316 </para></listitem>
317 </varlistentry>
318 <varlistentry>
319 <term><option>--description=<replaceable>description</replaceable></option></term>
320 <listitem><para>
321 Specifies a new description for the snapshot.
322 </para></listitem>
323 </varlistentry>
324 <varlistentry>
325 <term><option>--name=<replaceable>new-name</replaceable></option></term>
326 <listitem><para>
327 Specifies a new name for the snapshot.
328 </para></listitem>
329 </varlistentry>
330 </variablelist>
331 </refsect2>
332 <refsect2 id="vboxmanage-snapshot-list">
333 <title>List the Snapshots</title>
334 <remark role="help-copy-synopsis"/>
335 <para>
336 The <command>VBoxManage snapshot list</command> command lists
337 all the snapshots for a VM.
338 </para>
339 <variablelist>
340 <varlistentry>
341 <term><option>--details</option></term>
342 <listitem><para>
343 Specifies that the output shows detailed information about
344 the snapshot.
345 </para><para>
346 This option is mutually exclusive with the
347 <option>--machinereadable</option> option.
348 </para></listitem>
349 </varlistentry>
350 <varlistentry>
351 <term><option>--machinereadable</option></term>
352 <listitem><para>
353 Specifies that the output is shown in a machine-readable
354 format.
355 </para><para>
356 This option is mutually exclusive with the
357 <option>--details</option> option.
358 </para></listitem>
359 </varlistentry>
360 </variablelist>
361 </refsect2>
362 <refsect2 id="vboxmanage-snapshot-showvminfo">
363 <title>Show Information About a Snapshot's Settings</title>
364 <remark role="help-copy-synopsis"/>
365 <para>
366 The <command>VBoxManage snapshot showvminfo</command> command
367 enables you to view the VM settings that are part of an existing
368 snapshot.
369 </para>
370 <variablelist>
371 <varlistentry>
372 <term><replaceable>snapshot-name</replaceable></term>
373 <listitem><para>
374 Specifies the UUID or name of the snapshot.
375 </para></listitem>
376 </varlistentry>
377 </variablelist>
378 </refsect2>
379 </refsect1>
380
381 <refsect1 id="vboxmanage-snapshot-examples">
382 <title>Examples</title>
383 <remark role="help-scope" condition="GLOBAL"/>
384 <para>
385 The following command creates a snapshot of the
386 <computeroutput>ol7u4</computeroutput> VM. The snapshot is called
387 <computeroutput>ol7u4-snap-001</computeroutput>. The command uses
388 the <option>--description</option> option to provide a description
389 of the snapshot contents.
390 </para>
391<screen>
392$ VBoxManage snapshot ol7u4 take ol7u4-snap-001 \
393--description="Oracle Linux 7.4"
394</screen>
395 <para>
396 The following command lists the snapshots for the
397 <computeroutput>ol7u4</computeroutput> VM.
398 </para>
399<screen>
400$ VBoxManage snapshot ol7u4 list
401</screen>
402 <para>
403 The following command changes the description for the
404 <computeroutput>ol7u4-snap-001</computeroutput> snapshot of the
405 <computeroutput>ol7u4</computeroutput> VM.
406 </para>
407<screen>
408$ VBoxManage snapshot ol7u4 edit ol7u4-snap-001 \
409--description="Oracle Linux 7.4 with UEK4 kernel"
410</screen>
411 <para>
412 The following command shows VM settings for the
413 <computeroutput>ol7u1-snap-001</computeroutput> snapshot of the
414 <computeroutput>ol7u4</computeroutput> VM.
415 </para>
416<screen>
417$ VBoxManage snapshot ol7u4 showvminfo ol7u4-snap-001
418Name: ol7u4
419Groups: /
420Guest OS: Oracle (64-bit)
421UUID: 43349d78-2ab3-4cb8-978f-0e755cd98090
422Config file: C:\Users\user1\VirtualBox VMs\ol7u4\ol7u4.vbox
423...
424Snapshots:
425
426 Name: ol7u4-snap-001 (UUID: 1cffc37d-5c37-4b86-b9c5-a0f157a55f43)
427 Description: Oracle Linux 7.4 with UEK4 kernel
428</screen>
429 </refsect1>
430</refentry>
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use