summaryrefslogtreecommitdiff
path: root/couchdb_restoreall.sh
blob: 4bc67199b690d273f75efac3fe71cf4e2f03bdb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# dump_db() and restore_db() rely on python-couchdb package, 
# python-couchdb =< 0.8-1 needs to be patched, see
# http://code.google.com/p/couchdb-python/issues/detail?id=194 

. couchdb_scripts_defaults.conf
. couchdb_functions

dbs="`get_dbs $URL`"
#dbs='users_replicated'  # for debugging

for db in $dbs
do
  restore_db ${URL} $db $user $pw
done