56723b
.TH "hardlink" "1"
56723b
.SH "NAME"
56723b
hardlink \- Consolidate duplicate files via hardlinks
56723b
.SH "SYNOPSIS"
56723b
.PP
3f7d2b
\fBhardlink\fP [\fB-c\fP] [\fB-n\fP] [\fB-v\fP] [\fB-vv\fP] [\fB-h\fP] directory1 [ directory2 ... ]
56723b
.SH "DESCRIPTION"
56723b
.PP
7f38a6
This manual page documents \fBhardlink\fP, a
56723b
program which consolidates duplicate files in one or more directories
56723b
using hardlinks.
56723b
.PP
7f38a6
\fBhardlink\fP traverses one
56723b
or more directories searching for duplicate files.  When it finds duplicate
56723b
files, it uses one of them as the master.  It then removes all other
56723b
duplicates and places a hardlink for each one pointing to the master file.
56723b
This allows for conservation of disk space where multiple directories
56723b
on a single filesystem contain many duplicate files.
56723b
.PP
56723b
Since hard links can only span a single filesystem, \fBhardlink\fP
56723b
is only useful when all directories specified are on the same filesystem.
56723b
.SH "OPTIONS"
56723b
.PP
56723b
.IP "\fB-c\fP" 10
56723b
Compare only the contents of the files being considered for consolidation.
56723b
Disregards permission, ownership and other differences.
56723b
.IP "\fB-n\fP" 10
56723b
Do not perform the consolidation; only print what would be changed.
56723b
.IP "\fB-v\fP" 10
3f7d2b
Print summary after hardlinking.
3f7d2b
.IP "\fB-vv\fP" 10
3f7d2b
Print every hardlinked file and bytes saved. Also print summary after hardlinking.
56723b
.IP "\fB-h\fP" 10
56723b
Show help.
56723b
.SH "AUTHOR"
56723b
.PP
7f38a6
\fBhardlink\fP was written by Jakub Jelinek <jakub@redhat.com>.
56723b
.PP
56723b
Man page written by Brian Long.
56723b
.PP
56723b
Man page updated by Jindrich Novy <jnovy@redhat.com>
7f38a6
.SH "BUGS"
7f38a6
.PP
7f38a6
\fBhardlink\fP assumes that its target directory trees do not change from under
7f38a6
it.  If a directory tree does change, this may result in \fBhardlink\fP
7f38a6
accessing files and/or directories outside of the intended directory tree.
7f38a6
Thus, you must avoid running \fBhardlink\fP on potentially changing directory
7f38a6
trees, and especially on directory trees under control of another user.