Knowledge Base
MilesWeb / cPanel, How-Tos

How to Exclude Files from Backup of a cPanel Server?

Approx. read time : 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.

Prasad Khartadkar
Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.