Exclude subfolders during rsync file transfers in Arch Linux using the --exclude flag to prevent unnecessary nested content from being copied.