From owner-freebsd-current@FreeBSD.ORG Fri Jul 25 00:46:50 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D601252A; Fri, 25 Jul 2014 00:46:50 +0000 (UTC) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) by mx1.freebsd.org (Postfix) with ESMTP id 80A662C16; Fri, 25 Jul 2014 00:46:50 +0000 (UTC) Received: from amavis-proxy-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3hKBZ04mW6z1BN; Fri, 25 Jul 2014 02:46:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= user-agent:message-id:references:in-reply-to:organization :subject:subject:from:from:date:date:content-transfer-encoding :content-type:content-type:mime-version:received:received :received:received; s=jakla2; t=1406249205; x=1408841206; bh=saE KP6W/ydxAlua2Y9xQH66Q4LNfRKZjXaDbEI/MHuA=; b=On38cpScwQG6cgFcImQ qu/g3y5PDRa4p1rDmWx8M2s+4RtB97sSY7XIiFxIGQUXAQKtvu+aKgZPQ02pFOqG oKc+B04m35hd9+dIAH6LG3FUN4UvzbxhddICPnvSnSKiYOEQ94PwXdSn4HHEgD7h Mh3nEbHjEolLSDPMSmNuGvWk= X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([IPv6:::1]) by amavis-proxy-ori.ijs.si (mail.ijs.si [IPv6:::1]) (amavisd-new, port 10012) with ESMTP id l2rf58skVqRZ; Fri, 25 Jul 2014 02:46:45 +0200 (CEST) Received: from mildred.ijs.si (mailbox.ijs.si [IPv6:2001:1470:ff80::143:1]) by mail.ijs.si (Postfix) with ESMTP; Fri, 25 Jul 2014 02:46:44 +0200 (CEST) Received: from neli.ijs.si (neli.ijs.si [IPv6:2001:1470:ff80:88:21c:c0ff:feb1:8c91]) by mildred.ijs.si (Postfix) with ESMTP id 3hKBYw1chnz1Kr; Fri, 25 Jul 2014 02:46:44 +0200 (CEST) Received: from sleepy.ijs.si ([2001:1470:ff80:e001::1:1]) by neli.ijs.si with HTTP (HTTP/1.1 POST); Fri, 25 Jul 2014 02:46:44 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 25 Jul 2014 02:46:44 +0200 From: Mark Martinec To: Larry Rosenman Subject: Re: zfs send/recv: STILL invalid Backup Stream Organization: J. Stefan Institute In-Reply-To: References: <62315eb454a95db636b7764aad3c0f9b@thebighonker.lerctr.org> <53D1448C.40908@freebsd.org> <53D15438.6040105@freebsd.org> <0a9cd451c3b4304d2b9d899fcb3decc3@thebighonker.lerctr.org> <3d2aac84d962a703fbf56a864ba5f19c@mailbox.ijs.si> <9eef3e7e964cb33fd163cc2f9300f326@mailbox.ijs.si> Message-ID: X-Sender: Mark.Martinec+freebsd@ijs.si User-Agent: Roundcube Webmail/1.0.1 Cc: Freebsd fs , freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jul 2014 00:46:50 -0000 2014-07-25 01:36 Larry Rosenman wrote: > #!/bin/sh > DATE=`date "+%Y-%m-%d"` > #DATE2=2013-03-24 > #DATE2=`date -v "-1d" "+%Y-%m-%d"` > # snap the source > ssh root@tbh.lerctr.org zfs snapshot -r zroot@${DATE} > # zfs copy the source to here. > ssh root@tbh.lerctr.org "zfs send -v -R zroot@${DATE} | \ > ssh home.lerctr.org \"zfs recv -F -u -v -d zroot/backups/TBH2\"" Btw, this double-ssh looks awkward, why not just: ssh root@tbh.lerctr.org "zfs send ..." | zfs recv ... or better yet: ssh root@tbh.lerctr.org "zfs send ..." | mbuffer -m 16M | zfs recv ... (The misc/mbuffer compensates for bursty zfs reads and writes. A note to myself: I should suggest to Allan to add mbuffer in a pipe as used in sysutils/zxfer, instead of patching zxfer for our local use :) Mark