summaryrefslogtreecommitdiff
path: root/README.md
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 /README.md
parent33357a8bc816856deed8b1f4571afd6d178c58fe (diff)
now using custom dump method, much faster than using the scipt from python-couchdb
Diffstat (limited to 'README.md')
-rw-r--r--README.md33
1 files changed, 25 insertions, 8 deletions
diff --git a/README.md b/README.md
index 1ff2c89..5c39a9b 100644
--- a/README.md
+++ b/README.md
@@ -1,22 +1,39 @@
Leap Couchdb/Bigcouch scripts
=============================
-Issues
-------
+Todo
+====
-* 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
+* move from curl to wget, because it's faster
+Prerequisites
+=============
-Exapmples
-=========
+use a ./~.netrc file for authentication:
+
+ machine 127.0.0.1 login admin password YOUR_PW
+
+Examples
+========
Use couchdb functions on command line
-------------------------------------
. couchdb-scripts-defaults.conf
. couchdb_functions
+
+ # get all db names
get_dbs $URL
- restore_db $URL users_replicated $user $pw
+
+ # delete db
+ delete_db $URL users
+
+ # dump db "users" to stdout
+ dump_db $URL users
+
+ # Dump db "users" to default backupdir
+ dump_db_to_file $URL users
+
+ # restore db "users" from default backupdir
+ restore_db $URL users