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 AB14DFFF3 for ; Sat, 5 Oct 2013 09:31:51 +0000 (UTC) Received: (qmail 33681 invoked by uid 500); 5 Oct 2013 09:31:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 33640 invoked by uid 500); 5 Oct 2013 09:31:43 -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 33631 invoked by uid 99); 5 Oct 2013 09:31:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Oct 2013 09:31:41 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [209.85.128.48] (HELO mail-qe0-f48.google.com) (209.85.128.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Oct 2013 09:31:35 +0000 Received: by mail-qe0-f48.google.com with SMTP id nd7so3779709qeb.7 for ; Sat, 05 Oct 2013 02:31:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=bJstMf9dFTD9fCccyYUZZa6GPX94s8Erypp0viUxiuk=; b=DeMAlG0RlnwOd1ocj8ajdYRRTbASf23q4BbOAM8N1PJ2u3KNjTZbL36F08HjoIcscz l+NABpmY0pTTa/S8+51lU7I+dzu2lAGVqmH0ERb5IK4WYDSfm7ssaLbfOf7LbFosGjty Z0QCFSgWViAMzov28ovLRFVLI3zh8ykC3mItlVjXJuWX1eb4bsaUY0bKf47tvZoikQCK qv3VAFkVuLgsAdKmpQkHvh6SUau9TXyTUqBLt6yWwdEOTFiefUsysnTP3fxU8Dy5Qf4n e0KQ/1c1Ea44yXmsaFsP1DGMCdoQVqfjbx+aEG2ardRISKC1inE1rOGrRSw04SJOzOeV 2gTg== X-Gm-Message-State: ALoCoQm/+brb8CrrTSeygrdWcAy/vqPMxXvWwHm4zidfUef51WUjOAuZo4K9FjNIEFY+9y0lnc85 X-Received: by 10.49.18.195 with SMTP id y3mr23280284qed.39.1380965470558; Sat, 05 Oct 2013 02:31:10 -0700 (PDT) Received: from jambhal.local (c-68-37-177-195.hsd1.nj.comcast.net. [68.37.177.195]) by mx.google.com with ESMTPSA id l2sm38595704qad.10.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Oct 2013 02:31:09 -0700 (PDT) Message-ID: <524FDC62.2040905@orgmeta.com> Date: Sat, 05 Oct 2013 05:31:14 -0400 From: Vivek Pathak User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: Contribution: CouchDb dump and reload References: <524DB903.5010405@fiset.ca> <524DBABA.8080903@orgmeta.com> <9292ECFF-41C2-498C-A062-5FB6775C8B1F@couchbase.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I use couchdb-python and zip the output. The dump is useful because it backs up everything including design docs. I was wondering if link to this tool should be placed here: http://wiki.apache.org/couchdb/CouchDB_tools Thanks On 10/3/13 5:51 PM, Alexander Shorin wrote: > On Fri, Oct 4, 2013 at 1:28 AM, Jens Alfke wrote: >> On Oct 3, 2013, at 11:43 AM, Vivek Pathak wrote: >> >>> Just fyi, there is couchdb-dump available in >>> tihttp://code.google.com/p/couchdb-python/ >> Looks like these two tools use entirely different data formats. Has anyone thought of defining a common format for database dumps? > I think it will be hard to define such. > > Dumping CouchDB data as JSON looks intuitive and requires less > additional actions for import/export. Having couchdb-python approach > with multipart format provides lesser footprint, but requires a more > tricky processing (boundaries, headers). Both solutions may use > CouchDB API without any additional data conversion. And both requires > a lot of disk space, much more than if you just copy database file or > make a replica of it, unless you xz-zip the output. > > -- > ,,,^..^,,,