From 3935bccfabd4b004f3520981c9d161a7852fe4c5 Mon Sep 17 00:00:00 2001 From: Bruno TATU Date: Wed, 25 May 2022 17:02:28 +0200 Subject: [PATCH] =?UTF-8?q?#65947=20meilleure=20d=C3=A9tection=20de=20dump?= =?UTF-8?q?=20compress=C3=A9=20ou=20non=20pour=20mongo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 2a07975..86372fc 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -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")