From owner-freebsd-fs@FreeBSD.ORG Thu Jun 9 15:16:17 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 6FC60106567A for ; Thu, 9 Jun 2011 15:16:17 +0000 (UTC) (envelope-from tzim@tzim.net) Received: from orlith.tzim.net (unknown [IPv6:2001:41d0:2:1d32:21c:c0ff:fe82:92c6]) by mx1.freebsd.org (Postfix) with ESMTP id 0D6C88FC17 for ; Thu, 9 Jun 2011 15:16:17 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=secure.tzim.net) by orlith.tzim.net with esmtp (Exim 4.76 (FreeBSD)) (envelope-from ) id 1QUgxz-0005BE-S3 for freebsd-fs@freebsd.org; Thu, 09 Jun 2011 17:16:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 09 Jun 2011 17:16:15 +0200 From: Arnaud Houdelette To: In-Reply-To: References: Message-ID: X-Sender: tzim@tzim.net User-Agent: RoundCube Webmail/0.5.3 Subject: Re: zfs snapshot management 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: Thu, 09 Jun 2011 15:16:17 -0000 Hi ! I use home-made scripts as I found none that met my expectations. I used the following aproach : - Do 1 (or more) snapshots each day, named @`date -u +AUTO-%Y.%m.%d-%H.%M.%S-UTC`. (no @daily, @weekly, @monthly ... snapshots) - Run a cleanup script to destroy uneeded snapshots, using " zfs get -Hpo value creation $snap " to get snapshot times, thus avoiding daylight saving issues. Said script calculates first snapshot to keep and deletes older snapshots, then calculates next snapshot to keep and deletes 'in-betweens' and so on. I used said snapshots with a patched samba vfs_shadowcopy2 'til samba35 broke the patch. I can provide the scripts if wanted. Arnaud Houdelette On Sun, 5 Jun 2011 22:32:55 -0400 (EDT), Charles Sprickman wrote: > Hello all, > > I've been using a few different tools to manage zfs snapshots in > different > scenarios. For local use, I've found that Ralf Engelschall's set of > scripts[1] that tie into the periodic(8) system work fairly well. I > do > not use the amd portion since I am only working with zfs snapshots > and I > don't see a need to actually re-mount the snapshots elsewhere for > recovery. The only limitation I find with this system is that for > use on > a backups host the lack of a monthly or yearly retention period > pretty > much rules it out. For local "oops" stuff though, it's great. > > For hosts acting as backups servers, I've been using Snapfilter[2] > and > some cobbled together stuff that rsyncs a bunch of hosts and tries to > detect and notify on errors. Snapfilter simply is the zfs snapshot > "sweeper" that periodically deletes snapshots that are outside the > defined > retention period(s). > > Since there seems to be a fair number of serious zfs users here, I > was > hoping for some further suggestions for use in either case. Any > input is > welcome... > > Thanks, > > Charles > > [1] - http://people.freebsd.org/~rse/snapshot/ > [2] - http://www.scottlu.com/Content/Snapfilter.html > _______________________________________________ > 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"