VirtualBox

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

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

scm copyright and license note update

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