Skip/Exclude files from cPanel backup

Some files which may have incorrect permissions or immutable files may not be able backup by the backup script of cPanel. This may cause partial failure for backup status. To resolve this we can skip specific files or folders from backup.

1. To exclude files globally

Add files or directories to the
/etc/cpbackup-exclude.conf

2. To exclude files locally under the cPanel account

Create file under /home/username as “
cpbackup-exclude.conf

ie,
/home/username/cpbackup-exclude.conf

To skip a folder add the folder name to the file or file name as required.

Leave a comment