blob: 074d909b940b6ea4cfe3c02d5efb2818b27361c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
. couchdb_scripts_defaults.conf
. couchdb_functions
echo "excluding $EXCLUDE_DBS"
# create backupdir
[ -d $DUMPDIR ] || mkdir $DUMPDIR
dbs="`get_dbs $URL`"
for db in $dbs
do
# check if db is in the list of DBs to be excluded
[[ " $EXCLUDE_DBS " == *\ $db\ * ]] || dump_db_to_file ${URL} $db
done
|