couchcopy

command module
v0.0.0-...-65cd36a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2016 License: GPL-3.0 Imports: 13 Imported by: 0

README

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:password@example.com/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:password@example.com/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:password@example.com/database/_all_docs?include_docs=true&reduce=false' --output='https://username:password@example.com/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:password@example.com/database/_all_docs?include_docs=true&reduce=false' --output=database.redshift --redshift=true

local

./couchcopy --input=database.json --output=database.redshift --redshift=true

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL