Skip to content
Snippets Groups Projects
Commit 458ddfc0 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

fix guessDB

parent 56b798af
No related branches found
No related tags found
1 merge request!129Db Profiles
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
grep "^/" "$metafile" || grep "^ File: " "$metafile" | cut -c 9- grep "^/" "$metafile" || grep "^ File: " "$metafile" | cut -c 9-
else else
sBasename=$(basename $1) 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 __/ # timestamp in backup file __/ for couchdb2 restore from archive __/
if [ -z $sDb ]; then if [ -z $sDb ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment