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

Error displaying the error page: The cachelite Cache Storage is not supported on this platform. (Joomla error)

While accessing the Joomla site, I was getting error as - Error displaying the error page: The...

How to prevent xmlrpc attack on the WordPress?

To prevent xmlrpc attack in WordPress website just add below code to the .htaccess file of the...

How to install PHP selector on cPanel with CloudLinux?

If your server installed cPanel with CloudLinux and you will see the below error message at...

SSL Installation error -directive missing closing '>'

While installing the SSL on domain from WHM >> SSL/TLS >> Install an SSL Certificate...

#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation

While running one query from cPanel >> PhpMyAdmin, I was getting this error message -#1227...

Powered by WHMCompleteSolution