For the sake of this post, lets assume I have a folder called "misc" that has 100 sub-folder named 001 to 100. Each folder has many sub-folders and files.
I want to write one rsync command that recursively backs up only the folders named 009, 053, and 087.
This command works fine for backing up the entire "misc" folder:
rsync -v --progress --recursive /home/user/misc /home/user/backup/misc
I've made several attempts to use include and exclude parameters (to only backup the particular sub-folders I want), but each attempt has resulted in /home/user/backup/misc being an empty folder after the command is run successfully.
Could someone add to this command (above) the proper use of include and exclude parameters to achieve what I'm attempting?