The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Home Directory Backup Does Not Respect cpbackup-exclude.conf?

Discussion in 'Data Protection' started by feldon27, Nov 21, 2013.

  1. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    111
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Houston, TX
    I've setup cpbackup-exclude.conf to exclude 4 directories which contain approximately 10GB of log files which we can live without in case of data loss.

    I've got a well-worn MySQL backup script that backs up the structure of our main database, but excludes about 35GB of cache tables which can be regenerated through normal site access to a public API by our customers.

    So according to the documentation, it seems that there is a bug in Home Directory backup where it excludes cpbackup-exclude.conf?
    My choices seem to be:
    • Use the Account backup and get 35GB of data in every backup that I don't need, resulting in 1TB of extra downloads per month.
    • Use Home Directory backup and get 10GB of log files in every backup that I don't need, resulting in 300GB of extra downloads per month.

    So... any chance we can get that bug fixed in Home Directory backups, or is there some workaround to respect cpbackup-exclude.conf?
     
    #1 feldon27, Nov 21, 2013
    Last edited: Nov 22, 2013
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,446
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Can you share the cpbackup-exclude.conf you're using? Sounds like you've got it setup wrong somehow.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I believe you are referring to the following note in our documentation:

    Note: If you initiate a Home Directory backup within cPanel (Home >> Backups >> Download a Home Directory Backup), the global and local exclude files will not affect the contents of the backup file.

    This is accurate. You wrote the following:

    Have you considered utilizing the pkgacct script with the --skipacctdb flag to ensure databases are not backed up?

    Thank you.
     
  4. feldon27

    feldon27 Well-Known Member

    Joined:
    Mar 12, 2003
    Messages:
    111
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Houston, TX
    Yes, sorry for excluding the quote. And I consider that a bug. ;)


    I will take a look at that!
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It's not considered a bug, but you are welcome to open a feature request for this via:

    Submit A Feature Request

    Thank you.
     
Loading...

Share This Page