forked from przemoc/metastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
metastore.1
67 lines (66 loc) · 2.2 KB
/
metastore.1
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
.TH metastore "1" "February 2012"
.\"
.SH NAME
metastore \- stores and restores filesystem metadata
.\"
.SH SYNOPSIS
\fBmetastore\fR \fIACTION\fR [\fIOPTION...\fR] [\fIPATH...\fR]
.\"
.SH DESCRIPTION
Stores or restores metadata (owner, group, permissions, xattrs and optionally
mtime) for a filesystem tree. This can be used to preserve the metadata in
situations where it is usually not stored (git and tar for example) or as
a tripwire like mechanism to detect any changes to metadata. Note that e.g.
SELinux stores its labels in xattrs so care should be taken when applying
stored metadata to make sure that system security is not compromised.
.\"
.SH ACTIONS
.TP
.B \-c, \-\-compare
Shows the difference between the stored and real metadata.
.TP
.B \-s, \-\-save
Saves the current metadata to ./.metadata or to the specified file
(see \-\-file option below).
.TP
.B \-a, \-\-apply
Attempts to apply the stored metadata to the file system.
.TP
.B \-h, \-\-help
Prints a help message and exits.
.\"
.SH OPTIONS
.TP
.B \-v, \-\-verbose
Causes metastore to print more verbose messages. Can be repeated more than
once for even more verbosity.
.TP
.B \-q, \-\-quiet
Causes metastore to print less verbose messages. Can be repeated more than
once for even less verbosity.
.TP
.B \-m, \-\-mtime
Causes metastore to also take mtime into account for the compare or apply actions.
.TP
.B \-e, \-\-empty\-dirs
Also attempts to recreate missing empty directories. May be useful where
empty directories are not tracked (e.g. by git or cvs).
Only works in combination with the \fBapply\fR option.
This is currently an experimental feature.
.TP
.B \-g, \-\-git
Prevents metastore from omitting .git directories.
.TP
.B \-f <file>, \-\-file <file>
Causes the metadata to be saved, read from the specified file rather
than ./.metadata.
.\"
.SH PATHS
If no path is specified, metastore will use the current directory as the basis
for the actions. This is the recommended way of executing metastore.
Alternatively, one or more paths can be specified and they will each be
examined. Later invocations should be made using the exact same paths to
ensure that the stored metadata is interpreted correctly.
.\"
.SH AUTHOR
Written by David Härdeman <[email protected]>