Closed eliasp closed 2 years ago
Try -H
| --hard-links
flag.
Btw - links handling is going to be improved in the next release that should happen very shortly, and you will no longer need -H flag on isolated targets, because linked files with different roots will be treated as if they were not linked.
Currently, without this flag, all hardlinked files except one are simply removed from analysis at a very early stage - that's why what you try to do doesn't really work.
Thank you! Totally makes sense - in hindsight! I was looking for options like -H
in move
/remove
- didn't realize it's something I have to take care of during group
!
I have an old rsnapshot backup pool, which heavily uses hardlinking to deduplicate files between the various backup targets, e.g
daily.[0-6]
,weekly.[0-3]
, etc.Now I'd like to consolidate all those hardlinks down to a single file - meaning I'd like to delete all hardlinks of files and only keep one original file around.
I tried it like this:
But this approach showed, that
fclones
considers those hardlinks just to be deduplicated data, so it does nothing.Using
move
to move just a single copy of each file outside of the isolated directory had the same effect:So I wonder whether removing redundant hardlinks from an isolated target should be actually supported by
fclones
and I'm just doing it wrong or whether this is a not (yet) supported use-case?