Corriger liste dump mongodb

This commit is contained in:
Alexis Ben Miloud--Josselin 2022-07-04 09:58:32 +02:00
parent 40753385d1
commit 52e114e45f
1 changed files with 1 additions and 1 deletions

View File

@ -978,7 +978,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")