updated restore_db()
[couchdb_scripts.git] / couchdb_restoreall.sh
1 #!/bin/bash
2
3 # dump_db() and restore_db() rely on python-couchdb package, 
4 # python-couchdb =< 0.8-1 needs to be patched, see
5 # http://code.google.com/p/couchdb-python/issues/detail?id=194 
6
7 . couchdb_scripts_defaults.conf
8 . couchdb_functions
9
10 dbs="`get_dbs $URL`"
11
12 for db in $dbs
13 do
14   restore_db ${URL} $db $couchdb_user $couchdb_pw
15 done