Re: hard link identical files in a backup dir?

Thomas Rollins <[email protected]>
Newsgroups gmane.user-groups.linux.ottawa.general
Message-ID <[email protected]>
I would look at "hardlink --dry-run" first.

On Debian/Ubuntu: sudo apt-get install hardlink

hardlink traverses one or more directories searching for duplicate
files. When it finds duplicate files, it uses one of them as the
master. It then removes all other duplicates and places a hardlink for
each one pointing to the master file. This allows for conservation of
disk space where multiple directories on a single filesystem contain
many duplicate files.

On Tue, Apr 13, 2010 at 4:05 PM, Brett Delmage
<[email protected]> wrote:
> I have multiples backup images created from rsnapshot. Due to a changed
> configuration during setup, one set is not 'linked' - identical files
> are duplicated in this backup set, instead of being a hard link. This
> obviously increases the storage required greatly.
>
> Before scratching my head too long on this and scripting something to diff
> and link where files are identical, is there a way I could use use cp or
> rsync to re-hard link the identical files in the duplicated set, leaving
> just the different versions of files in place - and reducing my storage
> by almost 200 GB?
>
> Brett
>
> --
> OCLUG general discussion list
> [email protected]
> http://oclug.on.ca/mailman/listinfo/oclug
>
-- 
OCLUG general discussion list
[email protected]
http://oclug.on.ca/mailman/listinfo/oclug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.