added TASK argument to delete_old
This commit is contained in:
parent
8cbeb20d66
commit
366728ccda
1 changed files with 2 additions and 1 deletions
|
@ -111,6 +111,7 @@ delete_old() {
|
||||||
PRUNEABLES=`$PRUNEABLES_CMD $PATTERN`
|
PRUNEABLES=`$PRUNEABLES_CMD $PATTERN`
|
||||||
if test "$?" -eq "0" ; then
|
if test "$?" -eq "0" ; then
|
||||||
message "pruning older files based on $PATTERN"
|
message "pruning older files based on $PATTERN"
|
||||||
|
|
||||||
BU_TO_KEEP=$BU_TO_KEEP_${!2}
|
BU_TO_KEEP=$BU_TO_KEEP_${!2}
|
||||||
message "keeping last $BU_TO_KEEP backups"
|
message "keeping last $BU_TO_KEEP backups"
|
||||||
#
|
#
|
||||||
|
@ -207,7 +208,7 @@ FILENAME=$FILEPART-$STAMP.sql
|
||||||
FILEPATH=$BU_DIR/$FILENAME
|
FILEPATH=$BU_DIR/$FILENAME
|
||||||
#
|
#
|
||||||
# delete stale backups
|
# delete stale backups
|
||||||
delete_old $FILEPART
|
delete_old $FILEPART $TASK
|
||||||
#
|
#
|
||||||
message "backing up all the databases into $FILEPATH"
|
message "backing up all the databases into $FILEPATH"
|
||||||
# dump the data into the file
|
# dump the data into the file
|
||||||
|
|
Loading…
Reference in a new issue