How to exclude file/folder from backup (pkgacct) on cPanel server?

Is it possible to exlude file/folder from the full cPanel backup on cPanel server?

Solution :-

There are two ways to exlude file/folder from the full cPanel backup on cPanel server -

1) Global exclude file (root access needed).
2) Local exclude file

1) Global exclude file -

This option is used to exclude files/folders from the backup for all users hosted on the server by adding file/directories name in /etc/cpbackup-exclude.conf file.

Below are the example contents of /etc/cpbackup-exclude.conf to exlude backup files and access-logs for all users hosted on the server -

access-logs
backup-*
 
2) Local exclude file -

This option is used to exclude files/folders from the backup for individual user hosted on the server by adding file/directories name in /home/username/cpbackup-exclude.conf file.

Was this answer helpful?

 Print this Article

Also Read

Domain ****.com has outgoing email disabled.

I was getting below error message while sending emails - This message was created automatically...

The mail server could not deliver mail to mailadress@gmail.com. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries.

All of sudden emails are getting bounced with below bounce back messages on the cPanel server as...

A fatal error has occurred Cannot write to cache directory /tmp

While accessing WebMail client I was getting an error as below - A fatal error has occurred...

Auto Index is disabled for the directory, access denied : 403 forbidden

While accessing the directories of website (http://webiste_name/directory_name) getting 403...

A DNS entry for 'domain_name' already exists. You must remove this DNS entry from all servers in the DNS cluster to proceed.

While adding addon domain under cPanel, I was getting error as below - A DNS entry for...

Powered by WHMCompleteSolution