You can learn how to exclude certain files and directories from the Rsync command in a tutorial published by TecAdmin.
Rsync Command to Exclude Files and Directories: An Ultimate Guide
Rsync is a powerful command-line utility for Unix/Linux systems, that allows you to synchronize and transfer files between different two systems. One of the key features of Rsync is the ability to exclude files and directories from the synchronization process.
Rsync Command to Exclude Files and Directories: An Ultimate Guide – TecAdmin