Avoid backup schedule convergence

Operating System & Version
CENTOS 7.8
cPanel & WHM Version
v90.0.5

Optimizr

Active Member
Aug 8, 2020
38
6
8
Yangon
cPanel Access Level
Root Administrator
Hi all,
As I have experienced this kind of disaster, I would like to avoid it in future thus I want to know if it is already a cPanel's feature. The disaster I mentioned is the converging of different backup schedules. Let's say I have scheduled 3 backups
  1. Daily backup (runs daily)
  2. Weekly backup (runs every Sunday)
  3. Monthly backup (runs on every 1st day of the month)
So, usually, I will have 3 different backups to restore if anything went wrong. But when the 1st day of the month is Sunday (e.g; 1-Nov-2020), all backups schedules will run on the very same day and overwrite existing backups. Now, all 3 different backups became one and if that backup is not useable, restorable or not the version I want to restore, I am doomed!

So, I would ONLY like the daily backup schedule to run on this kind of day to avoid the disaster I mentioned. Is that already in cPanel or shall I request a feature?
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
713
280
363
cPanel Access Level
DataCenter Provider
As far as I know, cPanel won't do that. If for example the 1st is a Sunday (your example) cPanel only actualy runs the daily backup. It will then just copy that backup to the Sunday and the Monthly. They are trying to reduce the load on your server and NOT run the backup 3 times.
 
  • Like
Reactions: Optimizr

Optimizr

Active Member
Aug 8, 2020
38
6
8
Yangon
cPanel Access Level
Root Administrator
As far as I know, cPanel won't do that. If for example the 1st is a Sunday (your example) cPanel only actualy runs the daily backup. It will then just copy that backup to the Sunday and the Monthly. They are trying to reduce the load on your server and NOT run the backup 3 times.
You are correct about how cPanel runs the backup but I would really like cPanel to skip the overriding step on other backups on these kind of days.
 

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
713
280
363
cPanel Access Level
DataCenter Provider
You can, of course, put in a feature request, but I'd be interested in how many votes you get.

The "issue" with what you want is that on 1-Nov-2020 you'd only get a daily backup and no weekly or monthly backup. While that is what you want, it's prob. not what most people want (as you now have no weekly or monthly backup).

"Typically" if something goes wrong with a cPanel backup it won't do the delete part of the backup (i.e. remove the oldest).
 

Optimizr

Active Member
Aug 8, 2020
38
6
8
Yangon
cPanel Access Level
Root Administrator
If it's not already a feature, I will request it but I don't think it would get much votes because it is too specific and there's not even a thread about it apart from mine.

While that is what you want, it's prob. not what most people want (as you now have no weekly or monthly backup).
When you have a backup on the date, it doesn't matter if it is weekly or monthly because you can still restore the state of that date from daily backup. Besides, since it does not copy the same state to all backups, you will even have more options to restore to.

"Typically" if something goes wrong with a cPanel backup it won't do the delete part of the backup (i.e. remove the oldest).
It is a default behaviour of the backup but there's an option to force delete the old backup regardless of backup completion but I think this doesn't relate to the current thread.

I will go ahead and request the feature. Thank you for the discussion.