Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Backup retention not deleting?

Discussion in 'Data Protection' started by wingkchan, Jan 22, 2018.

Tags:
  1. wingkchan

    wingkchan Registered

    Joined:
    May 12, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Greetings! I have enabled Backup Configuration in WHM, and I found that the backups not deleting themselves after the retention. I set the backup to run daily and retention as 4. The jobs appears to have finished successfully, but the old backup doesn't get deleted which cause disk space issue. Anyone has experienced this that can offer advice? Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To clarify, do more than four daily backups exist, despite a retention setting of four? If so, do you notice any specific error messages in the most recent backup log (/usr/local/cpanel/logs/cpbackup/XXXX.log)?

    Thank you.
     
  3. wingkchan

    wingkchan Registered

    Joined:
    May 12, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    DataCenter Provider
    Thanks Michael for pointing out the log. I reviewed it and I noticed the backup partially failed. Looks like it could backup some database components due to corruption.

    The end of the logs shows:

    [2018-01-23 02:37:19 -0800] info [backup] Final state is Backup::PartialFailure (0)

    Could this partialfailure be the reason why it didn't delete the jobs outside of the retention period? thanks.
     
  4. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,722
    Likes Received:
    77
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Yes that is right, partial failure of the backup results in having the backup not deleted..
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,734
    Likes Received:
    1,706
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    By default, when the system backup partially completes (fails), the system will not delete the oldest backup, and it will continue to retain the oldest backups. This procedure ensures that the system retains at least one retained complete backup. We document this, plus options available to change this behavior, at:

    Retention Behavior

    Thank you.
     
Loading...

Share This Page