From 6445ffc7d44d460a7ba3965a9558ad554128361a Mon Sep 17 00:00:00 2001 From: varac Date: Wed, 21 Aug 2013 22:29:34 +0200 Subject: initial commit --- couchdb_restoreall.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 couchdb_restoreall.sh (limited to 'couchdb_restoreall.sh') diff --git a/couchdb_restoreall.sh b/couchdb_restoreall.sh new file mode 100755 index 0000000..20cd6b0 --- /dev/null +++ b/couchdb_restoreall.sh @@ -0,0 +1,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 -- cgit v1.2.3