Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I see that tar respects hard links

$ ln clonezilla.iso test.iso

$ tar cfvvJ archive.tar.xz *.iso

-rw-r--r-- Steven 111149056 2012-03-25 07:34 clonezilla.iso
hrw-r--r-- Steven         0 2012-03-25 07:34 test.iso link to clonezilla.iso

7-Zip does not do this

$ 7z a -mx=9 archive.7z *.iso

$ ls -l

-rw-r--r-- 1 Steven 212827496 Apr 17 07:40 archive.7z
-rw-r--r-- 1 Steven 105073772 Apr 17 07:38 archive.tar.xz

Is there a way to make 7-Zip respect hard links?

gnu.org/software/tar/manual/html_node/hard-links

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The documentation in the 7-Zip source code doesn't mention hardlinks, nor does the 7z manpage, so it seems that it does not. (It does however support symlinks.)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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