VirtualBox

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

最後變更 在這個檔案從99136是 99136,由 vboxsync 提交於 2 年 前

manual/man_VBoxManage*: Corrections. bugref:10302

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

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