From owner-freebsd-questions@FreeBSD.ORG Mon Jul 11 16:01:12 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E661106566C for ; Mon, 11 Jul 2011 16:01:12 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 589AC8FC08 for ; Mon, 11 Jul 2011 16:01:12 +0000 (UTC) Received: by iyb11 with SMTP id 11so4896057iyb.13 for ; Mon, 11 Jul 2011 09:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Rpf6y8FEGW3aQ17PFrFph6kUjOF855gpDS7dhF5V5i0=; b=aK93OzJRUqIXKZlUYGnk0MY3UXxDVuYUb/ukS9ocWBeWW9JarmzkPvIS8Z8sqfNyhS eROG+Pc9mnHTEZM+PcvM5asKztQjIcJTL0uWGCKebFmPECs/DU6G7leljOkPign7UqDq jcLrLebuaWZDW7rTd6SVKHrINJMqE5BYdTNM0= Received: by 10.42.108.9 with SMTP id f9mr4814309icp.358.1310400071399; Mon, 11 Jul 2011 09:01:11 -0700 (PDT) Received: from [192.168.1.3] (c-98-212-201-29.hsd1.il.comcast.net [98.212.201.29]) by mx.google.com with ESMTPS id c2sm5428885ibd.5.2011.07.11.09.01.10 (version=SSLv3 cipher=OTHER); Mon, 11 Jul 2011 09:01:10 -0700 (PDT) Message-ID: <4E1B1E46.8020600@gmail.com> Date: Mon, 11 Jul 2011 11:01:10 -0500 From: Joshua Isom User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4E1ACE74.2040809@nagual.nl> <4E1AD77F.7050900@infracaninophile.co.uk> In-Reply-To: <4E1AD77F.7050900@infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: ZFS on root backup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 16:01:12 -0000 On 7/11/2011 5:59 AM, Matthew Seaman wrote: > On 11/07/2011 11:20, Dick Hoogendijk wrote: >> OK, so now my ZFS on root FreeBSD-8.2 system runs smoothly and I'm very >> happy being able to have ZFS (coming from solaris11), but.. what is the >> best strategy to back this fbsd system up. do I create various ZFS >> backup filesystem streams or can I easely backup the zroot pool as a >> whole? And if yes, how? >> Grateful for all the help I can get in these matters. > >[...] > > What ZFS does get you in terms of backups are two things: > > 1) Really easy and unlimited amounts of snap-shotting. As well as > making it really simple to get a coherent point-in-time backup of > an active filesystem, they also give you a really simple 'undo' > type functionality, so you can unwind accidental deletions and > other user mistakes. > > 2) ZFS import and export -- again, exploiting the snap-shotting > capability, this makes it pretty easy to create a duplicate of > your filesystem onto another host, and to update the duplicate in > a very efficient way. > > Cheers, > > Matthew > > [*] As a number of companies found out to their cost, 'in the basement > of the other tower' was not sufficiently off-site to be effective. > I recently just converted my system from raid0 to raid1, using zfs, and because of mountpoints and other quirks you could end up having trouble with zfs send and receive. If you're planning on backing up the whole pool, then using a backup drive, and virtualbox with the disk image on the backup drive to backup the pool might be easiest after you get networking working. If you're not concerned about the whole pool, just just create filesystems for what you want to save and use those. You could just use the zfs send command and not recreate the filesystem, but it's not recommended until if and when the data stream is standardized. It'll work until Oracle breaks it.