From owner-freebsd-fs@FreeBSD.ORG Tue Apr 21 17:57:59 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DEFA718B for ; Tue, 21 Apr 2015 17:57:59 +0000 (UTC) Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B418817FC for ; Tue, 21 Apr 2015 17:57:59 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 1D6DC194D for ; Tue, 21 Apr 2015 13:57:51 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute4.internal (MEProxy); Tue, 21 Apr 2015 13:57:51 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=g9sZbSpDKpvF8nP X4NTJ5yVmIXo=; b=AYuHLOuI6Lh64qU5f/TeeY27zOGFki3atAM3YWI6RixH1TM T36Mqv5hnNJ07274rRMM1msb6hj9+6HFQ1WxrANTISunjVBcLw44VrqBB4LiWTfM eXxNvIPJpZL7mHAYPqD15se7CrNJXkEX0n0DfItQROCjyEePrj/vYX/BdzOE= Received: by web3.nyi.internal (Postfix, from userid 99) id BC52110C160; Tue, 21 Apr 2015 13:57:50 -0400 (EDT) Message-Id: <1429639070.964197.256736865.55BDAF8C@webmail.messagingengine.com> X-Sasl-Enc: iEthPDotDbLeOeNHT/kKX1TLaQ6QaJO+3zxp4wbR/Hlu 1429639070 From: Mark Felder To: freebsd-fs@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-424f40c2 Subject: Re: ZFS: exclude one FS from recurive snapshot creation? Or some equivalent to "nodump" for dataset? Date: Tue, 21 Apr 2015 12:57:50 -0500 In-Reply-To: <710623939.20150420122931@serebryakov.spb.ru> References: <710623939.20150420122931@serebryakov.spb.ru> 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: Tue, 21 Apr 2015 17:58:00 -0000 On Mon, Apr 20, 2015, at 04: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. > You have to grow the snapshot tool yourself, but it's possible. The zfs snapshot -r will not understand this though. zfstools is a utility to manage your snapshots and it uses zfs attributes to let you disable snapshots for a filesystem: zfs set com.sun:auto-snapshot -- that's an entirely fabricated attribute that the tool looks for so it knows to skip the snapshot. Check it out: https://github.com/bdrewery/zfstools