Fast copy couchdb records from one database to another or to local files
go get github.com/alexsofin/couchcopy
./couchcopy --input='https://username:[email protected]/database/_all_docs?include_docs=true&reduce=false' --output=database.json
./couchcopy --input=database.json --output='https://username:[email protected]/database/'
Note that when copying to a remote database, we send documents in bulk, so _bulk_docs is appended to a url path
./couchcopy --input='https://username:[email protected]/database/_all_docs?include_docs=true&reduce=false' --output='https://username:[email protected]/database/'
Note that when copying to a remote database, we send documents in bulk, so _bulk_docs is appended to a url pth
remote
./couchcopy --input='https://username:[email protected]/database/_all_docs?include_docs=true&reduce=false' --output=database.redshift --redshift=true
local
./couchcopy --input=database.json --output=database.redshift --redshift=true