snapshots.t
896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Load a couple of plugins.
$ antigen-bundle $PLUGIN_DIR
Cloning into '*'... (glob)
done.
Checking connectivity... done
$ antigen-bundle $PLUGIN_DIR2
Cloning into '*'... (glob)
done.
Checking connectivity... done
Create a snapshot file.
$ test -f snapshot-file
[1]
$ antigen-snapshot snapshot-file
$ test -f snapshot-file
See the contents of the snapshot file.
$ cat snapshot-file
version='1'; created_on='*'; checksum='*'; (glob)
.{40} .*/test-plugin (re)
.{40} .*/test-plugin2 (re)
Reset the antigen's bundle record and run cleanup.
$ unset _ANTIGEN_BUNDLE_RECORD
$ antigen-cleanup --force | grep '^Deleting' | wc -l
2
Restore from the snapshot.
$ ls dot-antigen/repos | wc -l
0
$ antigen-restore snapshot-file
Restoring from snapshot-file... done.
Please open a new shell to get the restored changes.
$ ls dot-antigen/repos | wc -l
2