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.

Older backups not deleted

Discussion in 'Data Protection' started by Havri, May 30, 2016.

  1. Havri

    Havri Member

    Joined:
    Oct 28, 2013
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hello,

    We are having some issues on many of our servers in which older archived backup aren't deleted. I am using the new backup system. Usually, after a new backup was generated, the folder that contained the older backups was deleted and the space usage was ok.

    I searched through the backup and cPanel logs, but i found no relevant information. The problem is that after a while, the backup disk gets full, as older backups are kept. Having multiple servers with this recurring problem can be a headache.

    Is anyone else encountering this issue? If yes, did you manage to find a solution?

    Thank you.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What settings are you using under the Scheduling and Retention section of your backup configuration in WHM?

    Whats the date on your oldest backup?
     
  3. Havri

    Havri Member

    Joined:
    Oct 28, 2013
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Hello,

    Under Scheduling and retention settings I have the "Backup Daily" ticked and on the Days settings I have only "Saturday" ticked (all of the servers have the same settings). The number of backups is set to 4. This morning, right before i started deleting old backups, the oldest backup was on 2016-04-02 (2nd of April), having a total of 9 backup points instead of 4.
    This is just an example from one of our servers. I checked and all of the users are selected in WHM -> Backup User Selection for the new backup.

    Everything worked fine until the end of March or beginning of April. After that, I thought it was just some temporary mix-up and I started erasing them manually. Some servers that are affected run Cloudlinux and some CentOS.
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    So you have Weekly and Monthly disabled?
     
  5. Havri

    Havri Member

    Joined:
    Oct 28, 2013
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    Yes, Monthly and Weekly disabled on the new backup. On the legacy backup I have a daily incremental backup from Monday to Thursday (4 days in total).
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You didn't mention using legacy backups in the mix previously, that adds another layer of confusion here. If it was me, I'd clean up all but say, the last two backups. Then set all backups to be using the same, new Backup system settings and see how it goes from there.
     
  7. Havri

    Havri Member

    Joined:
    Oct 28, 2013
    Messages:
    14
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Website Owner
    I didn't mention them because they are not overlapping. One is from Monday through Thursday (legacy incremental) and the other one runs only on Saturdays (new backup system - archived). I'll try your solution and come back here with a post and let you know if it worked.
     
  8. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    So with these settings:
    Backups will be generated for the next 4 Saturdays before the oldest one is removed I guess. I'm not sure how much value a backup from 4 weeks ago, Saturday, is to you but it seems like wasted space to me. I'd much rather have a backup from 4 days ago and newer in case of emergency.

    I think, Monday-Thursday, retention 0 would be using the same space as Saturday only, x 4 Saturdays.
     
Loading...

Share This Page