VirtualBox

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

Last change on this file since 96301 was 96300, checked in by vboxsync, 2 years ago

doc: comment fixing

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette