Open felciano opened 11 months ago
@felciano I have almost this exact use case. Did you get anywhere with it?
@ERamseth I wasn't able to figure out how to do this with fclones
directly. I ended up having to write a script that did it in multiple steps.
I'm trying to use
fclones
for a common use case of mine: confirming that a given photos directory contains, somewhere in its subdirectories, every photo that shows up in a second directory. Typically the first is a "master photo collection" folder that I've painstakingly collected and organized. At some point, I come across another folder of photos, e.g. on a thumb drive, and I think I've already got copies in the master folder, but I want to confirm. If it does turn out that there are photos in the new folder that haven't been added to the main archive yet, I want to cull those and copy them over.Finding the unique files is straightforward:
This gives me a file that contains files that are in
somenewfolder
but not inmyphotoarchive
, and vice-versa: files inmyphotoarchive
that are not insomenewfolder
. As the archive grows, the latter tend to outnumber the former for any given new folder I find, but here is a simple (contrived) example:I'd now like to find only the files that are in
somenewfolder
but not inmyphotoarchive
, and move them to a new location so I can easily review and add tomyphotoarchive
. In this example, theIMG_6721.jpeg
file is unique and it should be called out because it is under thesomenewfolder
directory tree. However the two.mov
files can be ignored because they are under themyphotoarchive
directory tree.I thought the
--path
parameter would allow this, but a dry run shows no changes would occur:I'm not sure why
IMG_6721.jpeg
wasn't identified by themove
command. Is there a different way to implement this use case usingfclones
?