Hi, this is more of a "what am I doing wrong" sort of question, but how do I exclude errors relating to those wretched OSX Icon\r files appearing in my log file ? I understand these files are used by OSX where a custom folder icon has been used. I also understand that these filenames are illegal. I don't want to backup the files, I'd just like to filter then so they don't appear in my rclone log as errors, forcing a retry.
I'm backing up a number of macs to an RPi running rsyncd, then using rclone to back that up to dropbox
In my exclude file I've tried
*Icon\r
Which is the syntax I use for Thumbs.db files and works fine
I'd rather not use Icon? as that syntax is too broad
I saw threads suggesting this was resolved in 1.50, but perhaps I'm misunderstanding how to use it. I also not some people are using filter files rather than exclude files, I'm not sure of the difference ?
Thank you
What is your rclone version (output from rclone version)
rclone v1.53.3
os/arch: linux/arm
go version: go1.15.5
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Debian RPi 32 bit
Which cloud storage system are you using? (eg Google Drive)
Dropbox
The command you were trying to run (eg rclone copy /tmp remote:tmp)
Can you share what the actual output of the file name is using rclone ls? You can use a filter file / exclude or whatever you want, but just share the full command and the filter file if you are using it.
2021/01/16 12:46:30 DEBUG : rclone: Version "v1.53.3" starting with parameters ["rclone" "ls" "/Archive/rsync/George/Dropbox/Public/" "-vv"]
2021/01/16 12:46:30 DEBUG : Creating backend with remote "/Archive/rsync/George/Dropbox/Public/"
2021/01/16 12:46:30 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
675 How to use the Public folder.txt
0 Icon␍
2021/01/16 12:46:30 DEBUG : 2 go routines active```
You can use a character class to match \r is probably the neatest way, so
--exclude 'Icons[\r]'
Or this in your exclude file
Icons[\r]
Will match one character \r only.
You can put these things in a character class (from the go regexp docs)
x single character
A-Z character range (inclusive)
\d Perl character class
[:foo:] ASCII character class foo
\p{Foo} Unicode character class Foo
\pF Unicode character class F (one-letter name)
That said, in the internal encoding rclone uses, \r will have been transformed to a unicode ␍ character, so I think