#65947 meilleure détection de dump compressé ou non pour mongo

This commit is contained in:
Bruno TATU 2022-05-25 17:02:28 +02:00
parent 124efe7f38
commit 3935bccfab
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ check_mongo_backup() {
# You could change the default path in /etc/evocheck.cf
MONGO_BACKUP_PATH=${MONGO_BACKUP_PATH:-"/home/backup/mongodump"}
if [ -d "$MONGO_BACKUP_PATH" ]; then
for file in "${MONGO_BACKUP_PATH}"/*/*.{json,bson}; do
for file in "${MONGO_BACKUP_PATH}"/*/*.{json,bson}.*; do
# Skip indexes file.
if ! [[ "$file" =~ indexes ]]; then
limit=$(date +"%s" -d "now - 2 day")