I have a large filesystem (sftp target with ZFS backing--around 1,000,000 files) which I am using "rclone sync" to sync to a crypt target (also sftp with ZFS backing). For approximately 50 files, I get SSH_FX_ERROR which I understand is caused by 255 character filename limit in ZFS (crypt target makes filename longer)
My goal is to maintain a list of these files and exclude them from the rclone sync. All of these filenames are long and gnarly (200+ characters, non-English characters, spaces, periods, parantheses, brackets etc.) which makes them hard to regex. I tried putting list in --exclude-from file, but they weren't excluded, and I believe the reason is the various special characters are treated as regexes as that file contains regexes and not filenames.
I found --files-from-raw which inputs raw file names, but that is inclusion not exclusion. Is there a method to exclude just filenames without any regexes? Is there a way to put raw filenames in --exclude-from file? Or an easy way to generate an --exclude-from file from a list of raw filenames?