Here you can find 2 ways to exclude files/folder from cpanel backup
Global exclude files: You can use this option to exclude files/folder for all users hosted on server from backup and for that you have to enter your file/directory name in /etc/cpbackup-exclude.conf file.
You can check below...