I have a problem with rsync when I pass the exclude list in curly braces, what is the difference between the following two lines?
sudo rsync -aHAXxhvi --delete --exclude={/1111111/} /etc/ /media/destino/etc/
sudo rsync -aHAXxhvi --delete --exclude={/1111111/,} /etc/ /media/destino/etc/
With the first one, the directory /etc/111111 is copied, the exclude does not work and with the second one it is not copied, the only difference is the comma.
Is this the expected behavior?
Greetings.