summaryrefslogtreecommitdiffstats
path: root/misc-utils/hardlink.1
diff options
context:
space:
mode:
authorTodd Lewis2017-03-28 21:16:56 +0200
committerRuediger Meier2018-06-12 14:24:02 +0200
commit551e8963f4ca7850a2d91bcb5ffb6032a690e93f (patch)
treefbd3b4113c8ac5b785e2e3690e5992ce10fccffe /misc-utils/hardlink.1
parentFixed 32 bit build with gcc7 (RH Bugzilla ID 1422989) (diff)
downloadkernel-qcow2-util-linux-551e8963f4ca7850a2d91bcb5ffb6032a690e93f.tar.gz
kernel-qcow2-util-linux-551e8963f4ca7850a2d91bcb5ffb6032a690e93f.tar.xz
kernel-qcow2-util-linux-551e8963f4ca7850a2d91bcb5ffb6032a690e93f.zip
exclude files via pcre
Diffstat (limited to 'misc-utils/hardlink.1')
-rw-r--r--misc-utils/hardlink.114
1 files changed, 13 insertions, 1 deletions
diff --git a/misc-utils/hardlink.1 b/misc-utils/hardlink.1
index 04228f4bb..b8bfe9d22 100644
--- a/misc-utils/hardlink.1
+++ b/misc-utils/hardlink.1
@@ -3,7 +3,7 @@
hardlink \- Consolidate duplicate files via hardlinks
.SH "SYNOPSIS"
.PP
-\fBhardlink\fP [\fB-c\fP] [\fB-n\fP] [\fB-v\fP] [\fB-vv\fP] [\fB-h\fP] directory1 [ directory2 ... ]
+\fBhardlink\fP [\fB-c\fP] [\fB-n\fP] [\fB-v\fP] [\fB-vv\fP] [\fB-x pattern\fP] [\fB-h\fP] directory1 [ directory2 ... ]
.SH "DESCRIPTION"
.PP
This manual page documents \fBhardlink\fP, a
@@ -32,8 +32,14 @@ Do not perform the consolidation; only print what would be changed.
Print summary after hardlinking.
.IP "\fB-vv\fP" 10
Print every hardlinked file and bytes saved. Also print summary after hardlinking.
+.IP "\fB-x pattern\fP" 10
+Exclude files and directories matching pattern from hardlinking.
.IP "\fB-h\fP" 10
Show help.
+.PP
+The optional pattern for excluding files and directories must be a PCRE2
+compatible regular expression. Only the basename of the file or directory
+is checked, not its path. Excluded directories' contents will not be examined.
.SH "AUTHOR"
.PP
\fBhardlink\fP was written by Jakub Jelinek <jakub@redhat.com>.
@@ -48,3 +54,9 @@ it. If a directory tree does change, this may result in \fBhardlink\fP
accessing files and/or directories outside of the intended directory tree.
Thus, you must avoid running \fBhardlink\fP on potentially changing directory
trees, and especially on directory trees under control of another user.
+.PP
+Historically \fBhardlink\fP silently excluded any names beginning with
+".in.", as well as any names beginning with "." followed by exactly 6
+other characters. That prior behavior can be achieved by specifying
+.br
+-x '^(\.in\.|\.[^.]{6}$)'