From owner-freebsd-fs@FreeBSD.ORG Fri Dec 2 14:47:28 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 25AEC106566C for ; Fri, 2 Dec 2011 14:47:28 +0000 (UTC) (envelope-from miconof80.list@gmail.com) Received: from mailhost.math.cnrs.fr (margauxlyon.mathrice.fr [194.167.215.28]) by mx1.freebsd.org (Postfix) with ESMTP id A57CF8FC0C for ; Fri, 2 Dec 2011 14:47:27 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailhost.math.cnrs.fr (Postfix) with ESMTP id 5ECA9440B8; Fri, 2 Dec 2011 15:27:09 +0100 (CET) X-Virus-Scanned: amavisd-new at math.cnrs.fr Received: from mailhost.math.cnrs.fr ([127.0.0.1]) by localhost (margaux.math.cnrs.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P78zzXlX-VQr; Fri, 2 Dec 2011 15:27:08 +0100 (CET) Received: from e4310 (e4310.lsv.ens-cachan.fr [138.231.81.249]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mailhost.math.cnrs.fr (Postfix) with ESMTP id 2E593440B5; Fri, 2 Dec 2011 15:27:08 +0100 (CET) Date: Fri, 2 Dec 2011 15:27:03 +0100 From: Michel Le Cocq To: Peter Maloney Message-ID: <20111202142656.GA7104@e4310> References: <4ED77B09.1090709@brockmann-consult.de> <4ED87FA6.6010408@brockmann-consult.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4ED87FA6.6010408@brockmann-consult.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-fs@freebsd.org Subject: Re: ZFS dedup and replication 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, 02 Dec 2011 14:47:28 -0000 it's just me or there is no attachment ? I've got also a script like that but seems not as good as you describe. It's base on zfs-periodic. -- Michel > Sure. Here are a bunch of my zfs scripts. (attached) > > Disclaimer/notes: > -provided as is... might destroy your system, furthermore, I am not > responsible for bodily injury nor nuclear war that may result from misuse > -there are no unit tests, and no documentation other than a few comments > that are possibly only coherent when I read them. For example, it says > that it does it recursively and rolls back the destination dataset, but > there are a few undocumented cases I can't remember when I needed to do > something manual like delete a snapshot, or destroy a dataset. Maybe > that is all in the past. I don't know. > -the zfs_repl2.bash is the one that makes snapshots and replicates which > I wrote myself. The other ksh one is the Oracle one I linked above, and > the .sh version of it was just what I was working on to try to make it > work reliably, before redoing it all myself (reinventing the wheel is > indeed fun). > -especially beware of the deleteOldSnapshots.bash which is not well > tested and not used yet (and deleteEmptySnapshots.bash which does not > work and I believe cannot work). > -granted transferable your choice of any present or future version of > the BSD or GPL license > > and another note, I meant to study these which might be better versions > of the same thing, or something different, but never got around to it: > /usr/ports/sysutils/zfs-replicate/ > /usr/ports/sysutils/zfsnap/ > /usr/ports/sysutils/zfs-periodic > > > Enjoy!