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.

Local Backups Not Deleting Anymore

Discussion in 'Data Protection' started by blipper, May 13, 2016.

Tags:
  1. blipper

    blipper Member

    Joined:
    Jan 27, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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?
     

    Attached Files:

  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you checked the log the system emails you for errors?
     
  3. blipper

    blipper Member

    Joined:
    Jan 27, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you tried the "Validate" option there in your backup settings?
     
  5. blipper

    blipper Member

    Joined:
    Jan 27, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you see any other errors in that log?
     
  7. blipper

    blipper Member

    Joined:
    Jan 27, 2010
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,471
    Likes Received:
    199
    Trophy Points:
    63
    Location:
    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:
    There were improvements to alerts recently, you might want to review your settings for them here:
    Home »Server Contacts »Contact Manager, Notifications tab.
     
  9. Matthew Wilcox

    Joined:
    Feb 5, 2016
    Messages:
    12
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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:
     

    Attached Files:

  10. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,834
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello @Matthew Wilcox,

    I noticed the following entry in the backup log:

    It looks like at least one account partially failed:

    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.
     
Loading...

Share This Page