summaryrefslogtreecommitdiff
path: root/couchdb-scripts-defaults.conf
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-10-24 16:44:41 +0000
committervarac <varacanero@zeromail.org>2013-10-24 16:44:41 +0000
commitb634e8f6aeaa793883c101648d8fc8818d5d74ae (patch)
tree7191108be737d1f5cd8e88eec98f3fb94045a6d5 /couchdb-scripts-defaults.conf
parent33357a8bc816856deed8b1f4571afd6d178c58fe (diff)
now using custom dump method, much faster than using the scipt from python-couchdb
Diffstat (limited to 'couchdb-scripts-defaults.conf')
-rw-r--r--couchdb-scripts-defaults.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/couchdb-scripts-defaults.conf b/couchdb-scripts-defaults.conf
index c0dfd2d..e7ad685 100644
--- a/couchdb-scripts-defaults.conf
+++ b/couchdb-scripts-defaults.conf
@@ -1,11 +1,18 @@
NETRC_FILE='/etc/couchdb/couchdb.netrc'
+
OPTS="--netrc-file $NETRC_FILE -HContent-Type:application/json -s"
CURL="curl $OPTS "
+
+# wget needs --auth-no-challenge, see bugs.debian.org/600169
+WGET_OPTS='--auth-no-challenge -q -O -'
+
+
URL='http://127.0.0.1:5984'
BACKEND_URL='http://127.0.0.1:5986'
DUMPDIR='/var/backups/couchdb'
TMPPREFIX='tmp'
+# replication uses
user=`cat /etc/couchdb/couchdb.netrc | cut -d ' ' -f 4`
pw=`cat /etc/couchdb/couchdb.netrc | cut -d ' ' -f 6`
auth_url="http://${user}:${pw}@127.0.0.1:5984"