Local Backups Not Deleting Anymore

blipper

Active Member
Jan 27, 2010
25
0
51
I noticed my local backups are no longer deleting after 5 days - I don't know when this started, but I'm thinking it was about when I went to WHM 56.0.

Under scheduling and retention, I have it set to retain 5 copies, but as of right now, it looks like I have about 13 daily backups, plus the weekly and monthly. It is clearly not cleaning up after itself like it used to.

I attached screen shots of my settings. It's been working fine for over a year and I have not made any changes, so this is a new behavior.

Any ideas?
 

Attachments

blipper

Active Member
Jan 27, 2010
25
0
51
Good idea, but now that you mention it, I'm not getting those emails for some reason. I looked at /usr/local/cpanel/logs/cpbackup/ and see at the very end:

[2016-05-13 04:30:34 -0500] size is: 13313625
[2016-05-13 04:30:34 -0500]
[2016-05-13 04:30:34 -0500] homesize is: 36540416
[2016-05-13 04:30:34 -0500] pkgacct completed
[2016-05-13 04:30:34 -0500] info [backup] Queuing daily backup copy for transport
[2016-05-13 04:30:34 -0500] info [backup] Queuing transport of file: /backup/2016-05-13/accounts/mydomain.tar.gz
[2016-05-13 04:30:34 -0500] info [backup] Queuing transport reporter
[2016-05-13 04:30:35 -0500] info [backup] Completed at Fri May 13 04:30:35 2016
[2016-05-13 04:30:35 -0500] info [backup] Final state is Backup::PartialFailure (0)
[2016-05-13 04:30:36 -0500] info [backup] Sent Backup::PartialFailure notification

I don't see any obvious errors in the log, but I'm not sure what I'm looking for.
 

blipper

Active Member
Jan 27, 2010
25
0
51
If you are talking about the one at the bottom, "validate all destinations," then, yes, I have. I don't see another place to check it. But that seems to pertain to the Amazon backup, not the local /backup. Either way, it is successful.
 

blipper

Active Member
Jan 27, 2010
25
0
51
I scanned the log and didn't see any errors. Is there a separate "cleanup" script I can run to see if it executes properly?
 

Infopro

Well-Known Member
May 20, 2003
17,113
507
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
No but you could force a backup to run via the command line and keep an eye on it:
Code:
/usr/local/cpanel/bin/backup --force
As for this:
I'm not getting those emails for some reason.
There were improvements to alerts recently, you might want to review your settings for them here:
Home »Server Contacts »Contact Manager, Notifications tab.
 
Feb 5, 2016
12
1
3
My Desk
cPanel Access Level
Root Administrator
We are having the same issue on an old server; it's just not deleting any of the old backups anymore, and we have had it entirely fill the server a number of times now because they're not getting removed.

Looking at the log, it seems like it doesn't try to delete anything? Here's the last full log before a failure due to a full disk:
 

Attachments

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
Looking at the log, it seems like it doesn't try to delete anything? Here's the last full log before a failure due to a full disk:
Hello @Matthew Wilcox,

I noticed the following entry in the backup log:

[2016-11-20 05:29:03 +0000] info [backup] Sent Backup::PartialFailure notification.
It looks like at least one account partially failed:

[2016-11-20 02:44:16 +0000] mcstest_live2: mysqldump failed -- database may be corrupt
The following case was implemented in cPanel version 60:

Fixed case CPANEL-7446: Don't prune old backups if backup was a partial failure.

Pruning is skipped if errors resulting in the failure to backup an account occurs during the backup generation. This is to avoid
getting rid of potentially good backups in favor of erroneous ones. I recommend checking to ensure "Backup Failure" notifications are enabled under "WHM >> Contact Manager". This will ensure you are notified when partial backup failures occur.

This is discussed further on the following thread:

After last cPanel update backups not being removed

Thank you.