From 458ddfc07331c5b80439b401d2cb58c81df42aa7 Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Thu, 14 Mar 2024 15:51:03 +0100 Subject: [PATCH] fix guessDB --- localdump.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localdump.sh b/localdump.sh index 6230bef..01ce07c 100755 --- a/localdump.sh +++ b/localdump.sh @@ -236,7 +236,7 @@ grep "^/" "$metafile" || grep "^ File: " "$metafile" | cut -c 9- else sBasename=$(basename $1) - sDb=$(echo ${sBasename} | sed "s#__[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9].*##g" | sed "s#\.couchdbdump\.gz$##g" ) + sDb=$(echo ${sBasename} | sed "s#__[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-[0-9][0-9].*##g" | sed "s#\.couchdbdump\.gz##g" ) # ^ ^ # timestamp in backup file __/ for couchdb2 restore from archive __/ if [ -z $sDb ]; then -- GitLab