Skip to content

Instantly share code, notes, and snippets.

Last active November 24, 2022 17:46
What would you like to do?
XFS reflinks deduplication with duperemove and fdupes

First, read this:

Then, some adds:

I recommand the use of fdupes to really save space used by all duplicated files. duperemove can miss some of them.

fdupes -r . | duperemove --fdupes

Finally, once duplicated files deduplicated, you can use same and block options to save more place.

duperemove -hdr --hashfile=/tmp/test.hash --dedupe-options=same,block .

I saved 15Go on a 40Go qemu windows image qcow file with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment