Excluding files and directories from cPanel backups
To exclude specific files and directories from cPanel backups, follow these steps:- Using a text editor from the command line, or one of the editors in the cPanel File Manager, create a file in the user’s home directory named cpbackup-exclude.conf.
-
Copy the following text and then paste it into the cpbackup-exclude.conf file:
📘 Note This list includes files and directories from various popular backup utilities, such as BackupBuddy and Akeeba. You can add additional lines to this file for any other items that you want to exclude from cPanel backups.
- Save your changes to the cpbackup-exclude.conf file. All of the files and directories listed in the cpbackup-exclude.conf are now excluded from subsequent cPanel backups.