summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-11-07 16:23:51 +0000
committervarac <varacanero@zeromail.org>2013-11-07 16:23:51 +0000
commit8d7dce8cca12b8aace8a6c1546542fd839dccb48 (patch)
tree57e81e966f64d168fbb4de643ad37c35ccaafaf5
parent60bd316ffe3c65ebdca21c43ff52fd1aa77159e4 (diff)
couchdb_dumpall.sh: check if db is in the list of DBs to be excluded
-rwxr-xr-xcouchdb_dumpall.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/couchdb_dumpall.sh b/couchdb_dumpall.sh
index e5217e6..074d909 100755
--- a/couchdb_dumpall.sh
+++ b/couchdb_dumpall.sh
@@ -3,6 +3,8 @@
. couchdb_scripts_defaults.conf
. couchdb_functions
+echo "excluding $EXCLUDE_DBS"
+
# create backupdir
[ -d $DUMPDIR ] || mkdir $DUMPDIR
@@ -10,5 +12,6 @@ dbs="`get_dbs $URL`"
for db in $dbs
do
- dump_db_to_file ${URL} $db
+ # check if db is in the list of DBs to be excluded
+ [[ " $EXCLUDE_DBS " == *\ $db\ * ]] || dump_db_to_file ${URL} $db
done