From owner-freebsd-fs@freebsd.org Tue Dec 15 10:07:02 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCE9BA441F3 for ; Tue, 15 Dec 2015 10:07:02 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A8BE312F8 for ; Tue, 15 Dec 2015 10:07:02 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1a8mVM-0004CW-J5 for freebsd-fs@freebsd.org; Tue, 15 Dec 2015 11:06:54 +0100 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: freebsd-fs@freebsd.org Subject: Re: is there way to do "offline" mirror References: <20151215004145.69572@smtp.new-ukraine.org> Date: Tue, 15 Dec 2015 11:06:47 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: <20151215004145.69572@smtp.new-ukraine.org> User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=disabled version=3.3.2 X-Scan-Signature: 938925967a2432a0d8c7279c30be63be X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2015 10:07:03 -0000 On Tue, 15 Dec 2015 23:41:45 +0100, Zeus Panchenko wrote: > greetings, > > is there way to do "offline" mirror? > > what I mean: > > host A has zpool with mirror of two md(4) file backed, > snapshots are made regularly > > host B has no network connection with host A > > what is the correct way to get on host B the same mirror of host A? > > variants I suggest: > > 1. regularly copy files of the zpool mirror from A to B? > > 2. regularly do something like: > on A: zfs sent snapshots@after-last-B-host-mirror-sync > diff-file > on B: cat diff-file | zfs receive > > 3. something else ... Option 2 is nice and efficient. Need to properly administrate the diff-files so you don't miss anything. Bonus: you can even zfs diff the diff-file to see what changed. Regards, Ronald.