You need to add a –exclude all and it has to come after the –include
rsync -zvr --include="*.sh" --exclude="*" $from/* root@$host:/home/tmp/
You need to add a –exclude all and it has to come after the –include
rsync -zvr --include="*.sh" --exclude="*" $from/* root@$host:/home/tmp/