From 3d771df75be50858a76a0c1db9cf776c02bb55bd Mon Sep 17 00:00:00 2001 From: Leonardo Casoni <79328866+LeonardoCasoni@users.noreply.github.com> Date: Thu, 1 Jun 2023 12:12:48 +0200 Subject: [PATCH] Update backup.sh the --forceTableScan option will prevent the snapshot functionality to become active, and the error 'Unrecognized field 'snapshot' will not appear for MongoDb version 4.0 and above --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index 5ddc97b..608ff1b 100755 --- a/backup.sh +++ b/backup.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -OPTIONS=`python /usr/local/bin/mongouri` +OPTIONS=`python /usr/local/bin/mongouri --forceTableScan` BACKUP_NAME="$(date -u +%Y-%m-%d_%H-%M-%S)_UTC.gz" # Run backup