stephem

Member
Apr 25, 2003
23
0
151
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
 

SageBrian

Well-Known Member
Jun 1, 2002
416
2
318
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. :)
 

stephem

Member
Apr 25, 2003
23
0
151
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?
 

stephem

Member
Apr 25, 2003
23
0
151
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:
Backup Interval (Note: Selecting Daily Backup with give you monthly and weekly as well unless you choose not to retain them below. Selecting Weekly backup will give you monthly as well unless you choose not to retain them below.)
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?
 

WillyMore

Active Member
May 22, 2002
34
0
306
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
 

taotoon

Well-Known Member
Nov 14, 2004
135
1
166
I am newbie too.

Maybe it same as access log files.

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

taotoon

Well-Known Member
Nov 14, 2004
135
1
166
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]
 
Last edited: