1 echo Create a series of snapshots, with names that intentionally sort
2 echo differently by topology than by name. Use revert to create fanout.
3 snapshot-create-as test s1
4 snapshot-create-as test s1
5 snapshot-create-as test s3
6 snapshot-create-as test s2
7 snapshot-revert test s3
8 snapshot-create-as test s6
9 snapshot-create-as test s5
10 snapshot-revert test s6
11 snapshot-create-as test s4
12 snapshot-revert test s1
13 snapshot-create-as test s7
14 snapshot-create-as test s8
16 echo checkpoints cannot be created while snapshots exist
17 checkpoint-create-as test c1
19 echo Checking tree view (siblings sorted alphabetically)
20 snapshot-list test --tree
22 echo Current was last one created, but we can change that
23 snapshot-current test --name
24 snapshot-current test s1
25 snapshot-current test --name
27 echo Deleting current root leads to multiple roots, demonstrate list filtering
28 snapshot-delete test --current
29 snapshot-current test --name
32 snapshot-list test --roots --name
34 snapshot-list test --leaves --name
36 snapshot-list test --parent --no-leaves --name
38 snapshot-list test --from s3 --name
39 snapshot-list test --from s3 --descendants --name
41 echo More fun with delete flags, current node moves up to remaining parent
42 snapshot-current test s4
43 snapshot-delete test --children-only s6
44 snapshot-current test --name
45 snapshot-delete test --children s7
46 snapshot-current test --name
47 snapshot-delete test s6
48 snapshot-current test --name
50 echo Now the tree is linear, so we have an unambiguous topological order
51 snapshot-list test --name
52 snapshot-list test --name --topological
53 snapshot-dumpxml test s3
54 snapshot-dumpxml test s2