VirtualBox

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

Last change on this file since 77787 was 77787, checked in by vboxsync, 6 years ago

doc/manual: fix scm breakage from previous commits.

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