1 It is advisable to create a ZFS snapshot, to be sure that there are some
4 # zfs snap storage@snap1
5 $ cd /storage/.zfs/snapshot/snap1
7 Run the index procedure:
9 $ glocate -db /tmp/db -index
11 After that, you can print all filenames:
15 List them with sizes and mtimes in machine parseable format:
17 $ glocate -db /tmp/db -machine
19 Or in human-friendly tree-like format:
21 $ glocate -db /tmp/db -tree
23 You can limit the hierarchy with the -root:
25 $ glocate -db /tmp/db -root music
28 And you can specify glob pattern for case-insensitive match for each
29 element path, that is automatically wrapped with "*":
31 $ glocate -db /tmp/db -root music blasphemy | grep "/$"
32 music/Blasphemy-2001-Gods_Of_War_+_Blood_Upon_The_Altar/
33 music/Cryptopsy-1994-Blasphemy_Made_Flesh/
34 music/Infernal_Blasphemy-2005-Unleashed/
35 music/Ravenous-Assembled_In_Blasphemy/
36 music/Sect_Of_Execration-2002-Baptized_Through_Blasphemy/
37 music/Spectral_Blasphemy-2012-Blasphmemial_Catastrophic/
39 If you changed you dataset(s) somehow, then you should create new
40 snapshot and feed its diff to the command:
42 # zfs snap storage@snap2
43 # zfs diff -FH storage@snap2 |
44 glocate -db /tmp/db -update /storage/
46 Argument to -update is the prefix stripped from each filename of