I'm confused about how rsync includes/excludes files and directories. I have an exclude file:
/proc/* /sys/* /dev/* /boot/* /tmp/* /run/* /mnt/* /media/* .Trashes ._.Trashes .fseventsd .Spotlight-V100 .DS_Store .AppleDesktop .AppleDB Network Trash Folder Temporary Items .bash_history /etc/fake-hwclock.data /var/lib/rpimonitor/stat/
and I'm using the following syntax for rsync:
sudo rsync -avH --delete-during --delete-excluded --exclude-from=/home/pi/rsync-exclude.txt / /mnt/
but rsync is creating the directories /mnt/proc, /mnt/sys, etc. They're empty as they should be but I'd prefer if they weren't there at all.
Is there a different syntax I can use to cause rsync to ignore the directories entirely?