Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BC00510874 for ; Wed, 5 Feb 2014 09:36:25 +0000 (UTC) Received: (qmail 51405 invoked by uid 500); 5 Feb 2014 09:36:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51310 invoked by uid 500); 5 Feb 2014 09:36:23 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 51297 invoked by uid 99); 5 Feb 2014 09:36:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 09:36:21 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ipad.wenk@gmail.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Feb 2014 09:36:15 +0000 Received: by mail-qc0-f182.google.com with SMTP id c9so175576qcz.41 for ; Wed, 05 Feb 2014 01:35:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=1+GoF9EF/jcYvbH/ggj2EZ5O8MjFK9a6afSwgXCGGCU=; b=uV46WTrL29QPlbbsaRP8vSlhXdHhpcOzOTvJqGHH543RPst4T9n09RlpZLYMZuBMc/ +wdLBAhcOfF4RvHk+1ttNVp304C5kCy+6yQPJ+MfPoLQGBYYoM8ugdCChY81RJlKEz4c Qpji1XP4BdvlOMqBds6BOluULSSyzxVIAY0tt2LUPA/AVxfttd/LlkgTpce+mkfgoECj 4OakdO2yV9igx5xytrdkdyelVCZDq0s+Rqh/ia7LNeUsNBWqQ7AB2MyRcIH7QfPqbuaT FtieVX/h66wB7AjnPh5edravUdENu0ZMfK0F2m8TKO8zrSSK+3AaswcfgqM335d8oeau YO8g== X-Received: by 10.229.90.199 with SMTP id j7mr801679qcm.14.1391592954823; Wed, 05 Feb 2014 01:35:54 -0800 (PST) MIME-Version: 1.0 Reply-To: andy@nms.de Sender: ipad.wenk@gmail.com Received: by 10.229.160.3 with HTTP; Wed, 5 Feb 2014 01:35:24 -0800 (PST) In-Reply-To: References: From: Andy Wenk Date: Wed, 5 Feb 2014 10:35:24 +0100 X-Google-Sender-Auth: PGRsA1ylQ9Eeo8LmVnpdp38WxlQ Message-ID: Subject: Re: command line interface to manage CouchDB replication To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=001a11343cdcbe8b4c04f1a57b32 X-Virus-Checked: Checked by ClamAV on apache.org --001a11343cdcbe8b4c04f1a57b32 Content-Type: text/plain; charset=UTF-8 Hi Duncan, thanks a lot for the post! I think it would be cool to add the link to https://wiki.apache.org/couchdb/CouchDB_tools even though there is already couchdb-utils. The fact that you build something for communicating with CouchDB is super cool so it should be mentioned! Thanks for your contribution Cheers Andy On 5 February 2014 03:55, Duncan Scott wrote: > I needed a command line tool to manage CouchDB replication. A quick survey > of existing tools at the CouchDB site and on github didn't turn up anything > specific to my needs. > > So I rolled my own light utility: > https://github.com/duncanscott/couch-cli > > > $ couch-cli replicate production --all --target backup --continuous > skipping _replicator > skipping _users > 9878f9de1b814649503331e3b8027825 started continuous pull replication of > geneusprod.ws_logger to backup.ws_logger > 9878f9de1b814649503331e3b8029c45 started continuous pull replication of > geneusprod.samples-submission to backup.samples-submission > > > It's also possible to create backups with a prefix generated by the tool: > > $ couch-cli backup production --all --target backup --tag weekly > skipping _replicator > skipping _users > 9878f9de1b814649503331e3b802dff5 started pull replication of > geneusprod.ws_logger to > backup.backup_geneusprod_20140204182434419_weekly_ws_logger > 9878f9de1b814649503331e3b8031013 started pull replication of > geneusprod.samples-submission to > backup.backup_geneusprod_20140204182434562_weekly_samples-submission > > > And then to delete backups with specific tags and/or older than a given > number of days. > > $ couch-cli deleteBackups backup --tag weekly --olderThan 30 > > > Thought it might be of use. > > You can build the executable using gradle or download an executable from > github. Java is needed to run the executable. > https://github.com/duncanscott/couch-cli/release< > https://github.com/duncanscott/couch-cli/releases/tag/v2.0> > > > Thanks, Duncan > > > > P.S. > > Taking another look at http://wiki.apache.org/couchdb/CouchDB_tools, it > looks like my application has some functionality similar to that of a new > project (which didn't exist when I wrote mine). > > https://github.com/awilliams/couchdb-utils > -- Andy Wenk Hamburg - Germany RockIt! http://www.couchdb-buch.de http://www.pg-praxisbuch.de GPG fingerprint: C044 8322 9E12 1483 4FEC 9452 B65D 6BE3 9ED3 9588 https://people.apache.org/keys/committer/andywenk.asc --001a11343cdcbe8b4c04f1a57b32--