blob: 633afffd2ba31132dbf406dc0e356571e6fde530 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
Leap Couchdb/Bigcouch scripts
=============================
Todo
====
* move from curl to wget, because it's faster
Prerequisites
=============
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
# 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
Copright / License
==================
All scripts are released under the terms of the `GNU GPL version 3` or later.
see LICENCE file for details.
|