Exclude Fles Using cpbackup-exclude.conf Question

Jul 15, 2018
16
1
3
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
 
Jul 15, 2018
16
1
3
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

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
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!