Differences
This shows you the differences between two versions of the page.
scripts:files:deduplication [2023-01-15 22:55] – created Tony | scripts:files:deduplication [2023-01-15 22:55] (current) – Tony | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Deduplicate Files on BTRFS ====== | ||
+ | |||
+ | BTRFS, ZFS, XFS, and many other file systems allow copy-on-write functionality, | ||
+ | |||
+ | These is sometimes called " | ||
+ | |||
+ | While BTRFS doesn' | ||
+ | |||
+ | 1. Programs such as rmlint can be used to convert identical files into reflinks, saving space. | ||
+ | |||
+ | sudo rmlint -c sh:link -g / | ||
+ | |||
+ | 2. Programs like duperemove can link individual extents within files | ||
+ | |||
+ | sudo duperemove -r -d -v -h --hashfile duperemove / | ||
+ | |||
+ | |||
+ | |||