From owner-freebsd-fs@FreeBSD.ORG Wed Apr 22 09:25:49 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4CD82ECC for ; Wed, 22 Apr 2015 09:25:49 +0000 (UTC) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A84B01778 for ; Wed, 22 Apr 2015 09:25:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id t3M9N2UJ095350; Wed, 22 Apr 2015 12:23:02 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Wed, 22 Apr 2015 12:23:02 +0300 (MSK) From: Dmitry Morozovsky To: Steven Hartland cc: freebsd-fs@freebsd.org Subject: Re: ZFS: exclude one FS from recurive snapshot creation? Or some equivalent to "nodump" for dataset? In-Reply-To: <5534CBE5.1020902@multiplay.co.uk> Message-ID: References: <710623939.20150420122931@serebryakov.spb.ru> <5534CBE5.1020902@multiplay.co.uk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Wed, 22 Apr 2015 12:23:52 +0300 (MSK) 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: Wed, 22 Apr 2015 09:25:49 -0000 On Mon, 20 Apr 2015, Steven Hartland wrote: > Thinking outside the box a little, create the recursive snapshot then remove > the snapshot for that user? or, even invent your own property like zfs set org.freebsd:nosend=yes pool/path/to/fs and then (could be optimized, but): zfs snap pool@snapname zfs get -H -o name,value -t snapshot org.freebsd:nosend | \ awk '$2 == "yes" {print $1}' | \ xargs -n1 zfs destroy ? > > On 20/04/2015 10:29, Lev Serebryakov wrote: > > Hello Freebsd-fs, > > > > I have set of ZFS filesystems, one fielsystem per user like this: > > > > zroot/home/group1/user11 > > zroot/home/group1/user12 > > zroot/home/group1/user13 > > zroot/home/group2/user21 > > zroot/home/group2/user22 > > zroot/home/group3/user31 > > ... > > > > I want to create complete snapshots of "zroot/home" tree regularly (with > > zfSnap), but I have one "user" which holds a huge amount of > > easy-reconstructible data, which I don't wont to store in snapshots. > > > > Is it possible to exclude one dataset (filesystem) from "zfs snap -r"? > > > > I don't want to enumerate all but this filesystem in configuration file, > > as > > it is error-prone and requires editing configs each time user is created or > > removed. > > > > P.S. I start to understand how much I love "nodump" flag on UFS and it usage > > with "dump" command! Absence of such functionality for "zfs send" is really > > pity. > > > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------