1
1

00:00:00,850  -->  00:00:03,400
<v Instructor>Now that we created our virtual machines,</v>
2

2

00:00:03,400  -->  00:00:07,160
it's a really good idea to take snapshots of them.
3

3

00:00:07,160  -->  00:00:09,770
A snapshot allows you to store the state
4

4

00:00:09,770  -->  00:00:11,950
of the current virtual machine.
5

5

00:00:11,950  -->  00:00:14,160
So allows you to go back in time
6

6

00:00:14,160  -->  00:00:18,050
or go forward to a certain state after you go back.
7

7

00:00:18,050  -->  00:00:20,170
So you can think of it as bookmarks.
8

8

00:00:20,170  -->  00:00:22,130
For example, now we can take snapshots
9

9

00:00:22,130  -->  00:00:25,310
of our fresh installation of the operating systems.
10

10

00:00:25,310  -->  00:00:28,053
And in the future if we update or configure something
11

11

00:00:28,053  -->  00:00:31,510
or break something, you can literally just go back
12

12

00:00:31,510  -->  00:00:34,870
to the fresh install or go back to factory settings
13

13

00:00:34,870  -->  00:00:36,430
if you want to call it.
14

14

00:00:36,430  -->  00:00:38,410
Then if you did something there
15

15

00:00:38,410  -->  00:00:41,670
and then you wanted to go back to your updated system.
16

16

00:00:41,670  -->  00:00:44,000
Then you can go back to the updated system as well.
17

17

00:00:44,000  -->  00:00:46,350
So it can literally take a snapshot whenever you want
18

18

00:00:46,350  -->  00:00:49,070
to store the state of the machine.
19

19

00:00:49,070  -->  00:00:51,963
And then you can go back and forth between these states.
20

20

00:00:53,020  -->  00:00:54,480
Now I'll show you how to do that.
21

21

00:00:54,480  -->  00:00:56,510
I have Kali-Linux right here.
22

22

00:00:56,510  -->  00:00:58,170
The one that we installed.
23

23

00:00:58,170  -->  00:01:00,230
And it's very easy to create a snapshot for it.
24

24

00:01:00,230  -->  00:01:03,370
All we have to do is just go on the snapshots here
25

25

00:01:03,370  -->  00:01:06,363
and click on the camera icon.
26

26

00:01:08,210  -->  00:01:10,600
Then it's gonna ask you to call the snapshot something.
27

27

00:01:10,600  -->  00:01:13,120
So I'm just going to call it Fresh Install
28

28

00:01:15,080  -->  00:01:16,520
and I'm just gonna give it the description
29

29

00:01:16,520  -->  00:01:19,820
saying it's a fresh snapshot with no updates.
30

30

00:01:19,820  -->  00:01:21,630
It's always a good idea to give a good name
31

31

00:01:21,630  -->  00:01:23,470
and good description so that in the future,
32

32

00:01:23,470  -->  00:01:27,240
you can actually remember what's the snapshot stand for.
33

33

00:01:27,240  -->  00:01:29,790
So now that I'm done, I'm just gonna click on okay.
34

34

00:01:31,230  -->  00:01:34,280
And now you can see that we have the current state.
35

35

00:01:34,280  -->  00:01:36,710
So whatever you do in here.
36

36

00:01:36,710  -->  00:01:37,690
You can update.
37

37

00:01:37,690  -->  00:01:38,880
You can install programs.
38

38

00:01:38,880  -->  00:01:40,330
You can install libraries.
39

39

00:01:40,330  -->  00:01:43,010
And then if you break something or you ever want to go back
40

40

00:01:43,010  -->  00:01:45,130
to the fresh install, you can just come back
41

41

00:01:45,130  -->  00:01:48,180
and click on the fresh install and restore.
42

42

00:01:48,180  -->  00:01:49,160
So let's see now.
43

43

00:01:49,160  -->  00:01:51,180
I'm just gonna go back to the details as normal
44

44

00:01:51,180  -->  00:01:54,010
and then we're gonna start our virtual machine.
45

45

00:01:54,010  -->  00:01:55,710
I'll just show you an example now.
46

46

00:02:02,530  -->  00:02:04,830
So let me just create a new directory in here.
47

47

00:02:07,020  -->  00:02:09,760
So let's imagine that you actually updated the system.
48

48

00:02:09,760  -->  00:02:11,010
Now in the future, we're gonna talk
49

49

00:02:11,010  -->  00:02:12,470
about updating the system.
50

50

00:02:12,470  -->  00:02:14,990
And I'm gonna tell you that when you update,
51

51

00:02:14,990  -->  00:02:16,980
there's a good chance some libraries
52

52

00:02:16,980  -->  00:02:19,230
some programs will not be as up to date
53

53

00:02:19,230  -->  00:02:21,220
as the libraries that will be installed.
54

54

00:02:21,220  -->  00:02:24,250
And then these programs might start giving you issues.
55

55

00:02:24,250  -->  00:02:26,830
Now if you have the issues, you can put them into discussion
56

56

00:02:26,830  -->  00:02:28,080
and I'll help you with them.
57

57

00:02:28,080  -->  00:02:31,260
But some cases, I'll tell you that you'll need to go back or
58

58

00:02:31,260  -->  00:02:33,980
downgrade to the older version without the update.
59

59

00:02:33,980  -->  00:02:35,710
So all you'll have to do is just get back
60

60

00:02:35,710  -->  00:02:39,170
to the fresh installation to your fresh snapshot.
61

61

00:02:39,170  -->  00:02:41,860
So now just created the new file just to show you
62

62

00:02:41,860  -->  00:02:44,410
that once you actually go back, everything will go back
63

63

00:02:44,410  -->  00:02:48,050
to the way it was before the changes that you made.
64

64

00:02:48,050  -->  00:02:49,650
So I'm just gonna turn off Kali.
65

65

00:02:53,860  -->  00:02:55,903
And now if we go back to the snapshots,
66

66

00:02:57,670  -->  00:02:59,700
you'll see that we have our current state.
67

67

00:02:59,700  -->  00:03:02,710
This state has been changed so it's the changed state.
68

68

00:03:02,710  -->  00:03:04,030
Now let's say that you updated
69

69

00:03:04,030  -->  00:03:05,380
and the update was successful.
70

70

00:03:05,380  -->  00:03:08,010
So nothing was broken and you are happy with it.
71

71

00:03:08,010  -->  00:03:10,700
So what you should do is that you should just come in and
72

72

00:03:10,700  -->  00:03:14,400
click on the camera icon again to create another snapshot.
73

73

00:03:14,400  -->  00:03:17,113
And we're gonna call this one Updated System.
74

74

00:03:18,160  -->  00:03:21,060
And then you can just put the date if you want to.
75

75

00:03:21,060  -->  00:03:23,070
And then I'm just going to put the description
76

76

00:03:23,070  -->  00:03:24,623
updated with no problems.
77

77

00:03:26,070  -->  00:03:27,513
So I'm gonna click okay.
78

78

00:03:29,510  -->  00:03:31,390
And you can see that we have two snapshots.
79

79

00:03:31,390  -->  00:03:34,030
We have the first one, which is our fresh install.
80

80

00:03:34,030  -->  00:03:35,660
And then we updated our system
81

81

00:03:35,660  -->  00:03:39,260
and we have an updated snapshot of an updated system.
82

82

00:03:39,260  -->  00:03:41,910
So now let's say that after you updated
83

83

00:03:41,910  -->  00:03:43,430
and you thought that everything was okay,
84

84

00:03:43,430  -->  00:03:45,620
you are using the machine and you have problems.
85

85

00:03:45,620  -->  00:03:48,060
So you wanted to go back to the fresh installation.
86

86

00:03:48,060  -->  00:03:51,220
All you have to do is just click on the fresh install
87

87

00:03:51,220  -->  00:03:54,150
and you can see the restore icon right here.
88

88

00:03:54,150  -->  00:03:55,123
Just click that.
89

89

00:03:55,990  -->  00:03:59,270
And now it restored me to the fresh installation.
90

90

00:03:59,270  -->  00:04:01,800
So now if I start the Kali machine,
91

91

00:04:01,800  -->  00:04:03,170
you will see the new directory
92

92

00:04:03,170  -->  00:04:05,173
that we created will disappear.
93

93

00:04:09,210  -->  00:04:11,440
Now as you can see, we are back to where we were
94

94

00:04:11,440  -->  00:04:13,550
without the new directory, without anything.
95

95

00:04:13,550  -->  00:04:17,490
So we are actually back to the fresh installation of Kali
96

96

00:04:17,490  -->  00:04:20,663
to when we actually took the snapshot.
97

97

00:04:21,750  -->  00:04:23,580
So now I'm gonna show you another example.
98

98

00:04:23,580  -->  00:04:25,610
So let's say you went back in time
99

99

00:04:25,610  -->  00:04:27,550
and you went back to your fresh installation.
100

100

00:04:27,550  -->  00:04:30,290
And then for some reason,
101

101

00:04:30,290  -->  00:04:32,360
you wanted to go back to your updated state
102

102

00:04:32,360  -->  00:04:33,630
to see if you can fix the issue.
103

103

00:04:33,630  -->  00:04:34,960
If I suggested the solution
104

104

00:04:34,960  -->  00:04:36,510
or if you read the solution online
105

105

00:04:36,510  -->  00:04:38,130
and you want to go back to fix the issue
106

106

00:04:38,130  -->  00:04:40,690
that you had after the update or for any other reason.
107

107

00:04:40,690  -->  00:04:43,390
Maybe you just wanted to go back to a different state.
108

108

00:04:43,390  -->  00:04:45,060
It wasn't an updated state.
109

109

00:04:45,060  -->  00:04:47,210
I'm just giving an example with the update.
110

110

00:04:47,210  -->  00:04:49,110
So if you want to go back to a future state,
111

111

00:04:49,110  -->  00:04:50,490
you can still do that.
112

112

00:04:50,490  -->  00:04:51,910
So all you have to do is just again.
113

113

00:04:51,910  -->  00:04:55,263
Click on the updated. Click on the restore.
114

114

00:04:56,140  -->  00:04:58,100
And we don't want to create a new snapshot
115

115

00:04:58,100  -->  00:04:59,050
from the current state.
116

116

00:04:59,050  -->  00:05:01,730
Because the current state is the updated state.
117

117

00:05:01,730  -->  00:05:03,663
So we're gonna restore this.
118

118

00:05:05,700  -->  00:05:07,420
Start the machine and you'll see
119

119

00:05:07,420  -->  00:05:09,810
that we'll be back to the updated state
120

120

00:05:09,810  -->  00:05:12,250
to where we had the new directory created.
121

121

00:05:12,250  -->  00:05:14,750
So we're actually gonna go back in the future now.
122

122

00:05:16,900  -->  00:05:19,440
And as you can see now, we have our test directory.
123

123

00:05:19,440  -->  00:05:23,043
So we're back to the state where we updated the system.
124

124

00:05:23,960  -->  00:05:24,793
So again.
125

125

00:05:24,793  -->  00:05:27,070
As you can see, the snapshots can be really useful.
126

126

00:05:27,070  -->  00:05:29,360
They can allow you to store bookmarks
127

127

00:05:29,360  -->  00:05:31,230
or states of the operating system.
128

128

00:05:31,230  -->  00:05:33,580
So you can actually have different configurations
129

129

00:05:33,580  -->  00:05:35,953
and you can switch between them as you want.
