rsync exclude specific folder but include subfolders with the same name
I’m sure there’s an order-of-include/exclude solution to this, but I want to sync a home directory for a user which has a mail
folder. I do not want the mail
folder, but if there happens to be another subfolder with the same name, I need that included.
What’s wrong with this rsync command exclusion?
I am using the following rsync command: