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?
How does tar deal with hardlinked files?
tar;hard link;deduplication
Probably a duplicate from Dereferencing hard linksBy default, a single copy of hardlinked data should be included in your archive.