I had an issue with my Linux SAMBA server and it has corrupted a good few of my photos (several hundreds of files in tens of directories). I have a Mac with a time machine backup and it has a good number of the originals throughout.
With the SAMBA share mounted on my mac I can search for zero kb files
find /Volumes/Photos/ f -empty -not -path '*/\.*'
How can I expand this command to search my mounted time machine to see if any zero kb files have a non corrupt equivalent?
I'm thinking I need a bash script. Or maybe Python.
findcommand is missing the-typebefore the singlefrsyncto copy the the good hierarchy over the bad one.