blob: eca14e9e2b6312bb27ee8a91436d472b1f2c4bfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
. couchdb_scripts_defaults.conf
. couchdb_functions
echo "excluding $EXCLUDE_DBS"
# remove old content and create fresh backupdir
[ -d $DUMPDIR ] && rm -rf $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
|