diff --git a/docker/mongodb/source/mongotools/mongo_manage.sh b/docker/mongodb/source/mongotools/mongo_manage.sh index 082cdf9fc..3eb244b32 100755 --- a/docker/mongodb/source/mongotools/mongo_manage.sh +++ b/docker/mongodb/source/mongotools/mongo_manage.sh @@ -114,6 +114,7 @@ backup() else echo "MongoDB backup for $dbName failed. Running alerts.sh..." /data/tools/alerts.sh + fi done find $BACKUP_DIR -mindepth 1 -maxdepth 1 -type d -ctime +10 | xargs rm -rf; }