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

feldon27

Well-Known Member
Mar 12, 2003
136
35
178
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?
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.
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?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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:

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.
Have you considered utilizing the pkgacct script with the --skipacctdb flag to ensure databases are not backed up?

Thank you.
 

feldon27

Well-Known Member
Mar 12, 2003
136
35
178
Houston, TX
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.
Yes, sorry for excluding the quote. And I consider that a bug. ;)


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

Thank you.
I will take a look at that!