Recursively copy all files matching "*.sh" in "$from" to "root@$host:/home/tmp/" compressing data during transmission
rsync -zvr --exclude="*" --include="*.sh" --include="*/" "$from" root@$host:/home/tmp/