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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址