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

Discussion in 'General Discussion' started by stephem, Apr 6, 2005.

  1. stephem

    stephem Member

    Joined:
    Apr 25, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    I'm not sure I really understand Backup Retention in WHM's Configure Backup.
    If the Backup Interval (Standard backup type to backup disk) is set to Daily and Backup Retention has Daily (ticked but greyed out), Weekly, Monthly ticked then does this mean:
    1. Daily backups are overwritten every day
    2. Weekly & Monthly backups are not overwritten each week/month. If so, how long are these backups kept for and what happens if the backup disk is full?

    Unfortunately the WHM documentation doesn't deal with this issue and it's a new backup disk so no files are there yet to look at.

    Thanks for any enlightenment on this issue
     
  2. SageBrian

    SageBrian Well-Known Member

    Joined:
    Jun 1, 2002
    Messages:
    415
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    NY/CT (US)
    cPanel Access Level:
    Root Administrator
    What I've found that Daily does is:

    Backup each day, keeping a copy of each day.
    So, you will find a backup for EACH day of the week.
    It gets overwritten once a week, on each specific day.

    Then, there is a weekly backup, kept for the week, then overwritten.

    Same on the Monthly.

    So, my count on backups, when checking off for daily is:
    7 daily backups
    1 weekly backup
    1 monthly backup.

    This gives me 9 copies of backups, causing disk space issues. Though, it's nice to have redundant backups.

    ---
    setting to Weekly skips the daily backups, thereby only giving you the 1 weekly, and the 1 monthly. But then you have to hope you don't need yesterdays backup. :)
     
  3. stephem

    stephem Member

    Joined:
    Apr 25, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for that. Assuming you have weekly and monthly retention checked that would indicate that 'weekly retention' means keeping daily backups for a week. But what then would 'monthly retention' mean?
     
  4. stephem

    stephem Member

    Joined:
    Apr 25, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Update:. Had 2 days of daily backup and accounts are backed up to /backup/cpbackup/daily/account_name.tar.gz on both days. This would mean that the previous daily backup would be overwritten? So where's the retention?

    How do I check backup file dates? The backup is to a 2nd hard disk that is unmounted after backing up (as a security measure?) so I can't look at the files.

    Rereading WHM's Configure backup which says:
    makes me think that all 'retention' means is that you get daily AND weekly AND monthly. So how does SageBrian get his 7 daily backups?
     
  5. WillyMore

    WillyMore Active Member

    Joined:
    May 22, 2002
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Daily is overwritten daily write a cronjob that copies the previous day and renames it. Keep it in the same folder as daily is now and it will show up in your restore backup in whm
     
  6. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    I am newbie too.

    Maybe it same as access log files.

    btw, Retention monthy may not need. ( save space )
     
  7. taotoon

    taotoon Well-Known Member

    Joined:
    Nov 14, 2004
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    After I run command "/scripts/cpbackup" manually, the behavior same as access_log.

    I will give the example:
    Code:
    [FONT="Courier New"]
           daily   weekly  monthy
    day1   5000    5000    5000
    day2   3000    8000    8000
    day3   4000   12000   12000
    day4   2000   14000   14000
    day5   6000   20000   20000
    day6   8000   28000   28000
    day7   5500   33500   33500
    day8   9000    9000   42500
    day9   6800   15800   49300 
    [/FONT]
     
    #7 taotoon, Jun 13, 2005
    Last edited: Jun 13, 2005
Loading...

Share This Page