3

This question already has an answer here:

I have a 2.5 TB of data that I want to put in a 2TB hard drive to mail somewhere. It's not hopeless, as a very large fraction of the data consists of duplicate files. I am considering using jdupes with the -H option, which will replace duplicate files with hardlinks to a single file.

Here's the problem: If I tar a directory containing multiple hard links to other files in the directory tree, will tar "reduplicate" them in the archive file?

marked as duplicate by Gilles, Community Nov 9 '16 at 23:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

6

Probably a duplicate from Dereferencing hard links

By default, a single copy of hardlinked data should be included in your archive.

2

If you are using Fedora / RHEL, there is a hardlink package that will clean those things up for you as well. Then, as others have noted, tar will only store a single one by default.

Not the answer you're looking for? Browse other questions tagged or ask your own question.