Do you understand the backup model in the current backup system?
In this model you can:
- Select a backup interval of daily, weekly, or monthly
- Select a retention of daily, weekly, monthly. Any combination of these three is acceptable
- Pick the day(s) of the week for backup to occur
What does any combination of these options result in? If I select an interval or weekly, a retention of monthly, and have backup run every day of the week, what is the end result?
As a user if I cannot adequately predict the result of my actions in the interface then something is wrong. The backup model, and its corresponding user interface, is complicated even when reading the source of scripts/cpbackup.
To address this we decided to simplify the backup model to the following:
We don’t set an upper limit on the number of backups to retain. That is a decision best handled by the server administrator, and will be determined by factors we cannot easily answer. Thus we allow unlimited as an option.
If you do set a hard threshold, such as 5, then once the limit is reached, we will remove the oldest backup to make way for a newer backup.
What if I only want to run backup once a week, or once a month? To run backup once a week, select only the day of the week you want, such as Friday, and deselect all other days.
That still doesn’t address “backup once a month.” For this iteration we wanted to implement the simplest thing possible. “Day of the week to run” certainly fits that. This is just the beginning. In our next iteration we’ll examine and implement monthly backup, and possibly others (e.g. quarterly).