File: dirvish-locate.8

package info (click to toggle)
dirvish 1.2.1-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 480 kB
  • sloc: perl: 4,494; sh: 211; makefile: 49
file content (140 lines) | stat: -rw-r--r-- 3,060 bytes parent folder | download | duplicates (6)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
.\"       $Id: dirvish-locate.8,v 12.0 2004/02/25 02:42:14 jw Exp $  $Name: Dirvish-1_2 $
.ds d \-\^\-
.ds o \fR[\fP
.ds c \fR]\fP
.ds | \fR|\fP
.ds bank \fIbank\fP
.ds vault \fIvault\fP
.ds branch \fIbranch\fP
.ds image \fIimage\fP
.de D
\\.B \*d\\$1
..
.de DR
\\.BR \*d\\$1 \\$2
..
.de Bi
\\.BI \\$1 " \\$2"
..
.de DI
\\.BI \*d\\$1 \\$2
..
.de Di
\\.BI \*d\\$1 " \\$2"
..
.de See
See \fB\\$1\fP for details.
..
.de SeeIn
See \fB\\$1\fP in \fB\\$2\fP for details.
..
.de multiple
Multiple \fB\\$1:\fP values will accumulate.
..
.de default
Default value: \fB\\$1\fP
..
.TH DIRVISH-LOCATE 8
.SH NAME
dirvish\-locate \- locate file versions in dirvish images
.SH SYNOPSIS
.B dirvish\-locate
.I vault\*o:branch\*c
.I pattern
.SH DESCRIPTION
Locate versions of files in a dirvish vault

The index of each image specified \*[vault] is searched for paths matching
.IR pattern .
Each path found matching the
.I pattern
will be reported followed by a modification time of each version of the
file and all images having a link to it.

The optional \*[branch] specification will restrict
searching to the specified branch.

Images with an error status will be skipped as will any
without index files.  The index file may be compressed by
gzip or bzip2.
See
.B tree
and
.B index
in
.B dirvish.conf(5)
for details.

The
.I pattern
is a
.B perl
regular expression to match the final component of the path.
Append
.B .*
to the end of the pattern if you wish to match any substring
of the whole path
or 
.B $
if you wish to anchor the pattern to the end of the path.
.See perlre(1)

Directories are excluded from matching as they would wind up
matching every file within them anyway.
Symlinks are also excluded from matching.

If the
.I pattern
matches too many paths
.B dirvish\-locate
will only report the paths matched and not versions.
As a sanity check if the number of matches is really excessive
.B dirvish\-locate
will limit the number of images searched.
Excessive matches is an indication of an insufficiently
specific
.IR pattern .
Use the resulting path list to compose a more specific one.
.SH EXIT CODES
To facilitate further automation and integration of
.B dirvish-locate
with other tools
.B dirvish-locate provides rationalised exit codes.
The exit codes are range based.  While the code for
a specific error may change from one version to another it
will remain within the specified range.  So don't test for
specific exit codes but instead test for a range of values.
To the degree possible higher value ranges indicate more
severe errors.
.TP
0
success
200-219
An error was encountered in loading a configuration file.
.TP
220-254
An error was detected in the configuration.
.TP
255
Incorrect usage.
.SH FILES
.TP
.B /etc/dirvish/master.conf
alternate master configuration file.
.TP
.B /etc/dirvish.conf
master configuration file.
.TP
.IB bank/vault/image/ summary
image creation summary.
.TP
.IB bank/vault/image/ index
.TP
.IB bank/vault/image/ index.gz
.TP
.IB bank/vault/image/ index.bz2
dirvish index file.
.SH SEE ALSO
.nf
dirvish.conf(5)
.SH BUGS