Exclude Fles Using cpbackup-exclude.conf Question

Ramon E Navas R

Registered
Jul 15, 2018
3
0
1
Venezuela
cPanel Access Level
Root Administrator
[I speak Spanish and this consultation in English is translated. Sorry for the possible errors in the translation]

I want to exclude from the backup all files extension * tar.gz and all error_log

How should I include it in the cpbackup-exclude.conf file?

Thank you
 

Ramon E Navas R

Registered
Jul 15, 2018
3
0
1
Venezuela
cPanel Access Level
Root Administrator
Hi.-

Thanks for the help but to exclude all the files * .tar.gz and error_log that are located in any folder of the user only it is added like this:

Code:
error_log
*.tar.gz
or you have to add some path ?

This is the doubt that I have
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
9,012
762
263
Houston
cPanel Access Level
DataCenter Provider
Hi @Ramon E Navas R

If you're not going to call the path directly I would include a wildcard as follows:
Code:
# cat cpbackup-exclude.conf
*.tar.gz
*error_log
I tested this to confirm as well anything marked error_log and anything with .tar.gz is excluded from the backup.


Thanks!