{"id":37098797,"url":"https://github.com/cabify/couchdb-utils","last_synced_at":"2026-01-14T12:01:04.419Z","repository":{"id":33826395,"uuid":"37524153","full_name":"cabify/couchdb-utils","owner":"cabify","description":"A fast and portable CouchDB command line utility. ","archived":true,"fork":true,"pushed_at":"2015-06-16T14:32:15.000Z","size":4601,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-25T13:56:08.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"awilliams/couchdb-utils","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cabify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-16T10:43:10.000Z","updated_at":"2024-02-19T03:48:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cabify/couchdb-utils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cabify/couchdb-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Fcouchdb-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Fcouchdb-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Fcouchdb-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Fcouchdb-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cabify","download_url":"https://codeload.github.com/cabify/couchdb-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cabify%2Fcouchdb-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T12:01:03.835Z","updated_at":"2026-01-14T12:01:04.396Z","avatar_url":"https://github.com/cabify.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# couchdb-utils [![Build Status](https://travis-ci.org/awilliams/couchdb-utils.png?branch=master)](https://travis-ci.org/awilliams/couchdb-utils)\n\nA fast and portable CouchDB command line utility. See help below for more information. Built with Go.\n\nSpecifically this was **built for maintaing a backup database by providing the following functionality**:\n\n * Easily replicate an entire remote machine (except databases that begin with '_'). This can be run repeatedly, as it will skip over any existing replicators on the target. \n \n  `couchdb-utils rep host maindb.example.com:5984 --continuous`\n\n * Refresh/regenerate all views in the backup database to allow quick failover. This could be run from a cronjob or as an external process. See the [couchdb faq](http://wiki.apache.org/couchdb/Frequently_asked_questions#I_want_to_update_my_view_indexes_more_often_than_only_when_a_user_reads_it._How_do_I_do_that_best.3F) for more info.\n \n  `couchdb-utils refreshviews`\n\nSpeed is an important feature. Here's a general idea of what you can expect.\n\n```bash\n$ time couchdb-utils databases | wc -l\n26\n\nreal\t0m0.020s\nuser\t0m0.000s\nsys\t0m0.000s\n\n$ time couchdb-utils views | wc -l\n575\n\nreal\t0m0.076s\nuser\t0m0.012s\nsys\t0m0.016s\n```\n*Run using local database on a linux virtual machine, YMMV.*\n\n### Download\n\n[Binaries for select systems are available](https://github.com/cabify/couchdb-utils/releases)\n\nThere are no dependencies besides the included binary.\n\n### Usage\n\n**Example Usage**\n```bash\n# refresh views in `mydb` database on host couch.example.com:1234, print views refreshed\ncouchdb-utils refreshviews mydb --host=user:pass@couch.example.com:1234 -v\n# refresh all views on host couch.example.com:1234, print http requests\ncouchdb-utils refreshviews --host=user:pass@couch.example.com:1234 -d\n\n# start continuous replication of all databases that do not begin with '_'\n# from `33.33.33.10:5984` to `user:secret@33.33.33.11:5984`\ncouchdb-utils rep host 33.33.33.10:5984 -h user:secret@33.33.33.11:5984 -v\n```\n\n**Base commands**\n```bash\nUsage:\n  couchdb-utils [flags]\n  couchdb-utils [command]\n\nAvailable Commands:\n  version                            :: Prints the version number of couchdb-utils\n  server                             :: Print basic server info\n  stats [(\u003cpart1\u003e \u003cpart2\u003e)]          :: Print server stats (optionally only a certain section eg: couchdb request_time).\n  activetasks [\u003ctype\u003e]               :: Print active tasks (optionally filtering by type)\n  session                            :: Print information about authenticated user\n  databases                          :: Print all databases\n  views [\u003cdb\u003e...]                    :: Print all views (optionally filtering by database(s))\n  refreshviews [\u003cdb\u003e...] [--verbose] :: Refresh views (optionally filtering by database(s))\n  rep \u003ccommand\u003e...                   :: Replication subcommands\n  help [command]                     :: Help about any command\n\n Available Flags:\n  -d, --debug=false: print http requests\n  -h, --host=\"http://localhost:5984\": Couchdb server url (http://user:password@host:port)\n  -v, --verbose=false: chatty output\n```\n\n**Replication commands**\n```bash\nUsage:\n  couchdb-utils rep \u003ccommand\u003e... [flags]\n  couchdb-utils rep [command]\n\nAvailable Commands:\n  list                                                        :: Print all replicators\n  start \u003csource\u003e \u003ctarget\u003e [--create --continuous]             :: Configure replication from source to target\n  stop (\u003cid\u003e... | --all) [--verbose]                          :: Stop replicating given id(s) or all\n  host \u003cremote_host\u003e [--create --continuous --verbose --push] :: Replicates all databases in remote host that do not begin with '_'\n\n Available Flags:\n  -d, --debug=false: print http requests\n  -h, --host=\"http://localhost:5984\": Couchdb server url (http://user:password@host:port)\n  -v, --verbose=false: chatty output\n```\n\n## Compiling\n\nA simple makefile is provided. Make sure GO is installed and setup for cross-compiling. See [here](http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go) and [here](https://coderwall.com/p/pnfwxg) for help.\n\n## Contributing\n\nPlease do.\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabify%2Fcouchdb-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcabify%2Fcouchdb-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcabify%2Fcouchdb-utils/lists"}