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!

Does cPanel delete accounts from the back after they are terminated from the WHM?

Discussion in 'Data Protection' started by WebHostPro, May 31, 2017.

Tags:
  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,651
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    I'm a little confused, I terminated an account and went to restore the back up after but it was gone. There was a feature request to remove backups of terminated accounts but they said they thought it was not safe to do this. Which it's not.

    The idea was to add an option to remove deleted account backups not to automate it.

    Am I wrong that cPanel just removes backups if the account is terminated now?

    Also your backup doc does not describe what this option does:

    Strictly enforce retention, regardless of backup success.For more information, read our Backup Configuration documentation.

    Does this stop cPanel from removing backups of terminated accounts?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. RadWebHosting

    RadWebHosting Active Member

    Joined:
    May 6, 2016
    Messages:
    32
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Dallas, Texas
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi WebHostPro,

    It is my understanding that you can "strictly enforce backup retention" which will protect the number of backups per user account (regardless of account status - i.e. active, suspended, terminated). Otherwise, the backup retention of terminated accounts would be overwritten by successive backup cron runs.

    For instance, your system is configured to take a daily backup on each day (Sun-Sat) of the week and your retention is 7 backups, an account that is terminated on Monday would have zero daily backups left in your system by Tuesday of the following week.

    With "Strictly enforce backup retention" enabled, the system will retain the last 7 backups (using the above example) would remain on your server.

    Please correct me if I am not understanding the scenario correctly.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    91
    Likes Received:
    14
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    Backups of terminated accounts in /backup are not removed on account termination. But successive backup runs won't backup the account as its terminated and there is nothing to backup. The account backups you keep in /home/user/ will be deleted
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,258
    Likes Received:
    390
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    cPanelTV posted a video about the Backup system and how it works recently, here:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The legacy backup option retained backups for terminated accounts. This behavior changed in the new backup system due to the nature of how backups are stored. For example:

    Legacy Backups Option> stored in /backup/cpbackup/daily/
    Current Backup Option > stored in /backup/$date/

    Since backups are stored and pruned based on the date of the individual backup directory in the current backup system, terminated accounts are only retained for the duration of your backup retention settings.

    The Strictly enforce retention, regardless of backup success setting relates to retention of partially failed backups. It's purpose is to determines how the dated backup directories are pruned in the event one or more of the accounts fail to backup successfully. It's unrelated to terminated accounts.

    We're actively seeking out features or functionality from the legacy backup system that you'd like to see in the new backup system in anticipation of the removal of the legacy backup feature from the product. I encourage you to open a feature request if you'd like to see an option to retain backups for terminated accounts beyond the configured retention periods.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,651
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for the detail. So to be clear if I have a retention of one backup and do daily backups 7 days a week. Once the account is removed it will remove the backup the next day after it's removed?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    RadWebHosting likes this.
  7. RadWebHosting

    RadWebHosting Active Member

    Joined:
    May 6, 2016
    Messages:
    32
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Dallas, Texas
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Interesting scenario...probably best to also keep a weekly or monthly :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,961
    Likes Received:
    1,821
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Yes, that's correct.

    I also see we've merged a few feature requests regarding this topic at:

    Remove backups of terminated accounts

    The feature request name relates the removal of terminated account backup archives, but the discussion now also centers around the inclusion of a feature that determines a backup retention period on terminated accounts.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,651
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Wouldn't that take two and three times the space though?

    We pull all the backups to a remote server daily for safety so that not the issue. The back up space only has the same as the home space so it couldn't do more than one I would think. Ideally I would like to see cPanel backup directly to a remote server with incremental. Just patiently waiting :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    693
    Likes Received:
    1
    Trophy Points:
    168
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    The link to the feature request appears to be broken. "No input file specified." is the error that is returned.

    I'm not a big fan of the new backups system's inability to keep old backups. People often pay very late after termination and expect to be restored or may come back after weeks or months and ask to pay for an old backup because their new host blew up their current site, etc.

    What's the state of the specified feature request?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,258
    Likes Received:
    390
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    The Feature Request site is having some changes and updates made to it. Should be back online soon.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice