Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  cPanel  >  How to Exclude Files from Backup of a cPanel Server?
Top Scroll

How to Exclude Files from Backup of a cPanel Server?

 2 min

Usually, backups include saving data from all web files on a server. But, if you are hosting on a cPanel server, you can exclude some files from the backup.

To Exclude Files from Backup

1. Log in to your cPanel account.

2. Click File Manager from the FILES section.

The File Manager interface will open in a new tab.

Here, you have to create a new file in the home folder of your hosting.

3. Click the +File button in the top-right corner.

The New File window will pop up.

4. Enter the New File Name as cpbackup-exclude.conf and click Create New File.

The cpbackup-exclude.conf file will appear in the file list.

5. Right-click on the cpbackup-exclude.conf file and select Edit from the context menu.

The file will open in the text editor.

6. Copy this code and paste it into the file:


Note: The files and directories in this list belong to popular backup utilities like BackupBuddy and Akeeba. You can include other items to exclude from cPanel backups by adding additional lines to this file.

Please note that the backup system excludes these files and directories for all users’ backups by default:


7. Click Save Changes and Close the file.

cPanel will exclude these files/directories from the server backup.

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
Claim the discount before it’s too late. Use the coupon code:
Note: Copy the coupon code and apply it on checkout.