Skip to content

Fast copy couchdb records from one database to another

License

Notifications You must be signed in to change notification settings

alexeysofin/couchcopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

couchcopy

Fast copy couchdb records from one database to another or to local files

Installation

go get github.com/alexsofin/couchcopy

Examples

Copy remote database to a local file

./couchcopy --input='https://username:[email protected]/database/_all_docs?include_docs=true&reduce=false' --output=database.json

Copy a local file to a remote database

./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

Copy remote database to another remote database

./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

Convert a database to redshift format and save it to a local file

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

About

Fast copy couchdb records from one database to another

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages