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.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Can't find disk space in /home directory on the cPanel server.

Before transferring a website from one server to another, I checked disk space of website using...

How to add/remove the trailing slashes in URLs using the .htaccess?

You can use the below code in the .htaccess file depending on the trailing slash required or not...

Install PHP-SSH2 extension in cPanel

PHP SSH2 extension to be loaded into the cPanel server as this module is not available inside...

Error: Website not found. If the website was recently renamed or moved please edit the install to save the new location (Files & Tables tab).

I was getting below error when opening installatron for all installs - Error message - Error:...

Powered by WHMCompleteSolution