Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Exclude Fles Using cpbackup-exclude.conf Question

Discussion in 'Data Protection' started by Ramon E Navas R, Jul 15, 2018.

  1. Ramon E Navas R

    Ramon E Navas R Registered

    Joined:
    Jul 15, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,480
    Likes Received:
    421
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Ramon E Navas R

    Ramon E Navas R Registered

    Joined:
    Jul 15, 2018
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,204
    Likes Received:
    228
    Trophy Points:
    173
    Location:
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice