VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/snapshots-take-restore-delete.dita@ 102568

Last change on this file since 102568 was 99797, checked in by vboxsync, 21 months ago

Docs: bugref:10302. Merging changes from the docs team. Almost exclusively conkeyref related stuff.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 8.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE topic
3 PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
4<topic xml:lang="en-us" id="snapshots-take-restore-delete">
5 <title>Taking, Restoring, and Deleting Snapshots</title>
6
7 <body>
8 <p>
9 There are three operations related to snapshots, as follows:
10 </p>
11 <ol>
12 <li>
13 <p>
14 <b outputclass="bold">Take a snapshot.</b> This makes
15 a copy of the machine's current state, to which you can go
16 back at any given time later.
17 </p>
18 <ul>
19 <li>
20 <p>
21 If your VM is running:
22 </p>
23 <p>
24 Select <b outputclass="bold">Take Snapshot</b>
25 from the <b outputclass="bold">Machine</b> menu
26 in the VM window.
27 </p>
28 <p>
29 The VM is paused while the snapshot is being created.
30 After snapshot creation, the VM continues to run as
31 normal.
32 </p>
33 </li>
34 <li>
35 <p>
36 If your VM is in either the Saved or the Powered Off
37 state, as displayed next to the VM name in the machine
38 list:
39 </p>
40 <p>
41 Display the Snapshots window and do one of the
42 following:
43 </p>
44 <ul>
45 <li>
46 <p>
47 Click <b outputclass="bold">Take</b> in the
48 Snapshots window toolbar.
49 </p>
50 </li>
51 <li>
52 <p>
53 Right-click on the <b outputclass="bold">Current
54 State </b>item in the list and select
55 <b outputclass="bold">Take</b>.
56 </p>
57 </li>
58 </ul>
59 </li>
60 </ul>
61 <p>
62 A dialog is displayed, prompting you for a snapshot name.
63 This name is purely for reference purposes, to help you
64 remember the state of the snapshot. For example, a useful
65 name would be "Fresh installation from scratch, no Guest
66 Additions", or "Service Pack 3 just installed". You can also
67 add a longer text description in the
68 <b outputclass="bold">Snapshot Description</b> field.
69 </p>
70 <p>
71 Your new snapshot will then appear in the snapshots list.
72 Underneath your new snapshot, you will see an item called
73 <b outputclass="bold">Current State</b>, signifying
74 that the current state of your VM is a variation based on
75 the snapshot you took earlier. If you later take another
76 snapshot, you will see that they are displayed in sequence,
77 and that each subsequent snapshot is derived from an earlier
78 one.
79 </p>
80 <fig id="fig-snapshots-list">
81 <title>Snapshots List For a Virtual Machine</title>
82 <xref href="images/snapshots-2.png" format="png" platform="htmlhelp">
83 <image href="images/snapshots-2.png" width="10cm" placement="break">
84 <alt>Snapshots List For a Virtual Machine</alt>
85 </image>
86 </xref>
87 <image platform="ohc" href="images/snapshots-2.png" width="10cm" placement="break">
88 <alt>Snapshots List For a Virtual Machine</alt>
89 </image>
90 </fig>
91 <p>
92 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> imposes no limits on the number of snapshots
93 you can take. The only practical limitation is disk space on
94 your host. Each snapshot stores the state of the virtual
95 machine and thus occupies some disk space. See
96 <xref href="snapshots-contents.dita#snapshots-contents"/> for details on what is
97 stored in a snapshot.
98 </p>
99 </li>
100 <li>
101 <p>
102 <b outputclass="bold">Restore a snapshot.</b> In the
103 Snapshots window, select the snapshot you have taken and
104 click <b outputclass="bold">Restore</b> in the
105 toolbar. By restoring a snapshot, you go back or forward in
106 time. The current state of the machine is lost, and the
107 machine is restored to the exact state it was in when the
108 snapshot was taken.
109 </p>
110 <note>
111 <p>
112 Restoring a snapshot will affect the virtual hard drives
113 that are connected to your VM, as the entire state of the
114 virtual hard drive will be reverted as well. This means
115 also that all files that have been created since the
116 snapshot and all other file changes <i>will be
117 lost. </i>In order to prevent such data loss while
118 still making use of the snapshot feature, it is possible
119 to add a second hard drive in
120 <i>write-through</i> mode using the
121 <userinput>VBoxManage</userinput> interface and use it to
122 store your data. As write-through hard drives are
123 <i>not</i> included in snapshots, they
124 remain unaltered when a machine is reverted. See
125 <xref href="hdimagewrites.dita#hdimagewrites"/>.
126 </p>
127 </note>
128 <p>
129 To avoid losing the current state when restoring a snapshot,
130 you can create a new snapshot before the restore operation.
131 </p>
132 <p>
133 By restoring an earlier snapshot and taking more snapshots
134 from there, it is even possible to create a kind of
135 alternate reality and to switch between these different
136 histories of the virtual machine. This can result in a whole
137 tree of virtual machine snapshots.
138 </p>
139 </li>
140 <li>
141 <p>
142 <b outputclass="bold">Delete a snapshot.</b> This
143 does not affect the state of the virtual machine, but only
144 releases the files on disk that <ph conkeyref="vbox-conkeyref-phrases/product-name"/> used to store
145 the snapshot data, thus freeing disk space. To delete a
146 snapshot, select the snapshot name in the Snapshots window
147 and click <b outputclass="bold">Delete</b> in the
148 toolbar. Snapshots can be deleted even while a machine is
149 running.
150 </p>
151 <note>
152 <p>
153 Whereas taking and restoring snapshots are fairly quick
154 operations, deleting a snapshot can take a considerable
155 amount of time since large amounts of data may need to be
156 copied between several disk image files. Temporary disk
157 files may also need large amounts of disk space while the
158 operation is in progress.
159 </p>
160 </note>
161 <p>
162 There are some situations which cannot be handled while a VM
163 is running, and you will get an appropriate message that you
164 need to perform this snapshot deletion when the VM is shut
165 down.
166 </p>
167 </li>
168 </ol>
169 </body>
170
171 </topic>
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