Closed Bug 887086 Opened 13 years ago Closed 13 years ago

Edit base_backup.sh to allow for config file to set KEEPBACKUPS variable less than the current limit

Categories

(Data & BI Services Team :: DB: MySQL, task)

x86
macOS
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mpressman, Assigned: mpressman)

Details

The base_backup script used for daily pg backups gets run with a config file passed to the script. The config file has an option for defining the number of archived backups before removal. The backup script has a safety feature to prevent from accidentally wiping out all archived backups. If the config file is setting the KEEPBACKUPS variable to less than the script's number it is ignored. Without removing the safety feature, it should be set lower so as to allow for the config file values to be honored.
Assignee: server-ops-database → mpressman
Changing the current safety number of 5 backups in the delete_old() function to 1 will still prevent the removal of all archived backups and will still allow for a reasonable amount of wiggle room in the config file.
Committed revision 69721
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Product: mozilla.org → Data & BI Services Team
You need to log in before you can comment on or make changes to this bug.