Closed etskinner closed 4 years ago
In the meantime I suppose what you want can be achieved by bind-mounting your subvolumes somewhere appropriate (/mnt or /tmp) and then run duperemove without -x on that mount.
Current dedupe support in the kernel doesn't support dedupe across mountpoints so it makes no sense to support this in duperemove at present time.
Man page shows:
In btrfs, subvolumes act like different mount points (boundaries), but they could still benefit from de-duping. For example, consider a directory in a btrfs filesystem with subvolumes
1
and2
, where there exist duplicate filesfoo
in each:It would be useful to have an option that would allow for filesystem boundary crossing (something like
--nx
or--subvolume
?). Ideally, duperemove would check if subvolumes that it recurses into are part of the same overall filesystem, and provide warnings if not.