From a6f57bc48dd666dbd117b58e6ed4ef9257b4e0d5 Mon Sep 17 00:00:00 2001 From: Axel Uhl Date: Mon, 22 Jul 2024 09:43:01 +0200 Subject: [PATCH] bug6021: dump base dir for archiveDb.sh no longer under /mnt/mongodb-slow --- .../central_mongo_setup/files/usr/local/bin/archiveDb.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configuration/environments_scripts/central_mongo_setup/files/usr/local/bin/archiveDb.sh b/configuration/environments_scripts/central_mongo_setup/files/usr/local/bin/archiveDb.sh index 404fdbbca27..e2714c74d4e 100755 --- a/configuration/environments_scripts/central_mongo_setup/files/usr/local/bin/archiveDb.sh +++ b/configuration/environments_scripts/central_mongo_setup/files/usr/local/bin/archiveDb.sh @@ -12,7 +12,8 @@ else fi DB=$1 -DUMPBASEDIR=/mnt/mongodb-slow +DUMPBASEDIR=/var/lib/mongodb/slow/.dump +mkdir -p "${DUMPBASEDIR}" if [ "$CONFIRMATION" = "" ]; then echo -n "This will drop the database $DB in the archive DB before importing. Are you sure (y/n)? " @@ -44,4 +45,4 @@ else echo "Hashes of old and new are empty of differ: ${ORIGINAL_HASH} and ${ARCHIVE_HASH}" exit 1 fi - +rm -rf ${DUMPBASEDIR}"