From owner-freebsd-fs@FreeBSD.ORG Sat Dec 15 01:49:15 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D39F52D4 for ; Sat, 15 Dec 2012 01:49:15 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from lauren.room52.net (lauren.room52.net [210.50.193.198]) by mx1.freebsd.org (Postfix) with ESMTP id 9093D8FC14 for ; Sat, 15 Dec 2012 01:49:15 +0000 (UTC) Received: from lstewart1.loshell.room52.net (ppp59-167-184-191.static.internode.on.net [59.167.184.191]) by lauren.room52.net (Postfix) with ESMTPSA id 2B0697E820; Sat, 15 Dec 2012 12:49:06 +1100 (EST) Message-ID: <50CBD711.8090607@freebsd.org> Date: Sat, 15 Dec 2012 12:49:05 +1100 From: Lawrence Stewart User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120613 Thunderbird/13.0 MIME-Version: 1.0 To: Zeus Panchenko Subject: Re: snapshot management tool? References: <20121213162137.78332@relay.ibs.dn.ua> In-Reply-To: <20121213162137.78332@relay.ibs.dn.ua> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lauren.room52.net Cc: freebsd-fs@freebsd.org X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2012 01:49:15 -0000 On 12/14/12 00:21, Zeus Panchenko wrote: > hi all, > > please, share what are you using to manage snapshots > > in ports collection I see: > > zfs-periodic > zfs-snapshot-mgmt > zfsnap > zfstools I use zfsnap on all my ZFS based systems e.g. root@newtcphub:~ # tail -n 15 /etc/crontab # Remove snapshots with an expired TTL at 05:35/17:35 each day. 35 5,17 * * * root /usr/local/sbin/zfSnap -d -p 15mins_ -p daily_ -p weekly_ -p monthly_ # Take 15min snapshots of important filesystems, rolling them every 3 days. 8/15 * * * * root /usr/local/sbin/zfSnap -S -s -a 3d -p 15mins_ -R newtcphub newtcphub/usr newtcphub/var -r newtcphub/home newtcphub/data # Take daily snapshots of important filesystems at 06:10, rolling them every 14 days. 10 6 * * * root /usr/local/sbin/zfSnap -S -s -a 14d -p daily_ -R newtcphub newtcphub/usr newtcphub/var -r newtcphub/home newtcphub/data # Take weekly snapshots of important filesystems at 06:25 on Sundays, rolling them every 6 weeks. 25 6 * * sun root /usr/local/sbin/zfSnap -Ss -a 6w -p weekly_ -R newtcphub newtcphub/usr newtcphub/var -r newtcphub/home newtcphub/data # Take monthly snapshots of important filesystems at 06:35 on the 1st of each month, rolling them every 4 months. 35 6 1 * * root /usr/local/sbin/zfSnap -Ss -a 4m -p monthly_ -R newtcphub newtcphub/usr newtcphub/var -r newtcphub/home newtcphub/data Haven't tried the other ports so don't have an opinion on them. Cheers, Lawrence