diff options
Diffstat (limited to 'couchdb_dumpall.sh')
-rwxr-xr-x | couchdb_dumpall.sh | 5 |
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 |