Exclude files and directories from Site Backup in cPanel Shared Hosting
If you don't want Site Backups to keep backups of certain things on your account (directories, types of files), you can add them to your Site Backup exclusion list.
- From the cPanel home page, in the Files area, click Site Backup.
- Click (Select Directories).
- In the Exclusions area, enter what you want to exclude from backups using the following syntax:
Element Syntax Example Directory The directory name tmp Individual files The file name db1.sql File types A period entered by the file extension .sql
- Click Save.
- You can remove any backups that contain files or directories you don't want to back up.