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 9742610337 for ; Tue, 7 May 2013 22:00:41 +0000 (UTC) Received: (qmail 51173 invoked by uid 500); 7 May 2013 22:00:40 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 51055 invoked by uid 500); 7 May 2013 22:00:40 -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 51047 invoked by uid 99); 7 May 2013 22:00:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 22:00:40 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of n.breunese@vpro.nl does not designate 193.138.205.158 as permitted sender) Received: from [193.138.205.158] (HELO zaza.lemonbit.com) (193.138.205.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 22:00:32 +0000 Received: (qmail 32046 invoked by uid 10100); 8 May 2013 00:00:10 +0200 X-Qmail-Scanner-Diagnostics: from 77-172-145-201.ip.telfort.nl by zaza.lemonbit.com (envelope-from , uid 2020) with qmail-scanner-2.10st (clamdscan: 0.97.8/17161. mhr: 1.0. spamassassin: 3.3.2. perlscan: 2.10st. Clear:RC:1(77.172.145.201):. Processed in 0.016407 secs); 07 May 2013 22:00:10 -0000 Received: from 77-172-145-201.ip.telfort.nl (HELO gena.home) (77.172.145.201) by zaza.lemonbit.com with ESMTPSA (AES128-SHA encrypted, authenticated); 8 May 2013 00:00:10 +0200 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: Best way to backup and restore after going offline From: Nils Breunese In-Reply-To: Date: Tue, 7 May 2013 23:59:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <26DFFECD-2D89-45EC-A003-E824445F2BB8@vpro.nl> References: To: "user@couchdb.apache.org" X-Mailer: Apple Mail (2.1503) X-Virus-Checked: Checked by ClamAV on apache.org andy e wrote: > We're trying to replicate a database while connected to the great big > Internet (the npm repo, actually). But after it is finished = replicating we > need to take our copy and run it in a different and offline = environment. >=20 > What's the best way to proceed? Just backup the database file(s), then = copy > them over to our offline instance (we do this via disc/usb/etc). = Anything > to be aware of when doing this ("make sure to grab this file", "run = this > command first before importing")? A single .couch file represents a single database. You can just copy = over these files. There's even no need to shut down the source instance = (unlike when using something like MySQL for instance). If you also want to copy over the generated view indexes, you can also = copy over the hidden directories in the data directory. This only makes = sense if regenerating these indexes on the target instance takes a lot = of time. > Is there any way to pick up just the changed documents, so that the = second > time we do this, we only have to transfer what is new (versus copying = the > entire thing again)? That's not too big of a deal if so but would be a > nice-to-have. Updating your online copy could be done by rerunning replication from = npm to your online instance. You could use rsync to just copy over the = differences in the file at the block level. Or you could start a second = CouchDB instance on the offline machine (use a different IP address = and/or port) using the updated database files on the transfer medium and = run replication between those two CouchDB instances on the offline = machine. HTH, Nils.=