Possible to dedupe a union and give path/back end remote priority as mode?

Not sure if this is possible but figured it can't hurt to ask. If I have a union remote named union: consisting of /mnt/path1 and /mnt/path2, and I run rclone dedupe union:, is there a flag or option to say only delete dupes from /mnt/path2?

Essentially I'm trying to find hash matches across two paths, the first path is read only, the second path is rw, so obviously, I can only delete from the second path. I'm not sure if there is a way to do this with rclone. Thanks in advance for any help/guidance.


you have a union consisting of two local paths?

Yes. But they can be remotes I'd that's easier to achieve what I'm trying to do.

if both paths are local, then you can use any depude tool supported by your operating system.

I primarily use rclone but this scenario is a bit more advanced than previous ones. I'll google some linux utilities.

Are you Linux?

rdfind is a nice one that I've used before.

This might give you a few ideas too:

1 Like

I am! Thank you for the pointer, will def check it out . Might be better than my rclone lsf hash lists into excel lol :slight_smile: