LogoopenSUSE Build Service > Projects
Sign Up | Log In

Save disk space by finding identical files and hardlinking them

A hardlink is a name for a file. With most filesystems supported
by Linux systems, a single file can have multiple names; each of those
is called a hardlink. The link count of a file is the second column in the
output of the /bin/ls command.

/usr/bin/hardlink.py finds files that are identical, unlinks (removes)
occurrences that have the same content and then creates a hardlink to the
twin file as a substitute. Since the name of a file in its directory entry
is the only additional space requirement of an additional hardlink, each
time hardlink.py creates a hardlink the disk usage of the removed file is

Note that since files are objects that are contained in a filesystem, 
hardlinks across filesystem boundaries are not possible.

Use "hardlink.py -h" for a full description of the program's options.

hlbx (by Roman Drahtmueller) is a script useful for backups and archives
of them. Have a look at the comments therein for more detailed information
and configuration.

    John Villalovos <john@sodarock.com>

Source Files

Filename Size Changed Actions
COPYING 17.6 KB Download File
hardlinkpy-minimum_size.diff 530 Bytes Download File
hardlinkpy.changes 286 Bytes Download File
hardlinkpy.spec 2.1 KB Download File
hlbx 7.97 KB Download File

Comments for home:draht (0)

Login required, please login or signup in order to comment