From owner-freebsd-fs@FreeBSD.ORG Fri Nov 11 20:40:36 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F4AC106564A for ; Fri, 11 Nov 2011 20:40:36 +0000 (UTC) (envelope-from delphij@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 61BD58FC08 for ; Fri, 11 Nov 2011 20:40:36 +0000 (UTC) Received: by vws11 with SMTP id 11so5492132vws.13 for ; Fri, 11 Nov 2011 12:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AeTOq0njp2o1MvZvyK4APd0DQWABVmrAUSGaCArE0cM=; b=WgBD8nTtqnK9sFZJkcYQ2yUBA367joMqATTB7t5RqwN5Da2coIf0tVjhQqUh6tw99V 61f1EgOQcTcOzVluBP71YOAl4mQsQjF33HVRbOYCGbmQTG+zTuHsquZmzj8DYjbyhBsP dA9JZsce0JEf39BYTuPVtICL3Qq5zaU9yYT+s= MIME-Version: 1.0 Received: by 10.229.40.10 with SMTP id i10mr2171347qce.123.1321044035486; Fri, 11 Nov 2011 12:40:35 -0800 (PST) Received: by 10.229.212.4 with HTTP; Fri, 11 Nov 2011 12:40:35 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Nov 2011 12:40:35 -0800 Message-ID: From: Xin LI To: Johannes Totz Content-Type: text/plain; charset=UTF-8 Cc: freebsd-fs@freebsd.org Subject: Re: backing up zfs dataset X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2011 20:40:36 -0000 On Fri, Nov 11, 2011 at 8:36 AM, Johannes Totz wrote: > Hi, > > To back up a zfs dataset there are a few possibilities: > 1) rsync file data to another machine > 2) zfs-send to another machine, into a zfs dataset > 3) zfs-send to another machine, dumping the stream to a file > > The first one works alright but you loose admin info, properties set on the > dataset, etc > The second is prefered but requires another machine which runs zfs. > The third is bad. > > So far I have been doing (3), for daily short-term backups, works, tested, > everything is peachy. However, I dont like it anymore for obvious reasons. > Ideally, I would like to go with (2). But I dont have another zfs-capable > machine, or the machine that I would like to backup onto will not ever run > zfs. > > So I came up with another crazy idea, assuming the remote machine exports a > block device (somehow): > 4) zpool-attach the remote block dev as a mirror, let it resilver, offline > it during the day, at night online it, resilver, and so on > 5) create a pool on the block dev locally on the to-be-backed-up-machine and > periodically zfs-send stuff over > > I would go for (4), it seems to be the mostly automatic. > Any thoughts on this? > Should I expect things to go titsup if there's network issues? I think this is not a good idea. Could you please try if zstreamdump would fulfill your need? Cheers, -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die