Commit 366728cc authored by Dave Lane's avatar Dave Lane
Browse files

added TASK argument to delete_old

parent 8cbeb20d
......@@ -111,6 +111,7 @@ delete_old() {
PRUNEABLES=`$PRUNEABLES_CMD $PATTERN`
if test "$?" -eq "0" ; then
message "pruning older files based on $PATTERN"
BU_TO_KEEP=$BU_TO_KEEP_${!2}
message "keeping last $BU_TO_KEEP backups"
#
......@@ -207,7 +208,7 @@ FILENAME=$FILEPART-$STAMP.sql
FILEPATH=$BU_DIR/$FILENAME
#
# delete stale backups
delete_old $FILEPART
delete_old $FILEPART $TASK
#
message "backing up all the databases into $FILEPATH"
# dump the data into the file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment