Skip to main content

Local Backups Not Deleting Anymore

Comments

9 comments

  • Infopro
    Have you checked the log the system emails you for errors?
    0
  • blipper
    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.
    0
  • Infopro
    Have you tried the "Validate" option there in your backup settings?
    0
  • blipper
    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.
    0
  • Infopro
    Do you see any other errors in that log?
    0
  • blipper
    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?
    0
  • Infopro
    No but you could force a backup to run via the command line and keep an eye on it:
    /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.
    0
  • Matthew Wilcox
    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:
    0
  • cPanelMichael
    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.
    0

Please sign in to leave a comment.