From owner-freebsd-fs@FreeBSD.ORG Sat Dec 15 14:25:28 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 02D56680 for ; Sat, 15 Dec 2012 14:25:28 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.78]) by mx1.freebsd.org (Postfix) with ESMTP id 79A358FC14 for ; Sat, 15 Dec 2012 14:25:26 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Tjsg3-0006X6-LV for freebsd-fs@freebsd.org; Sat, 15 Dec 2012 15:25:20 +0100 Received: from h253044.upc-h.chello.nl ([62.194.253.44] helo=pinky) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1Tjsg3-0005go-1E for freebsd-fs@freebsd.org; Sat, 15 Dec 2012 15:25:19 +0100 Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes To: freebsd-fs@freebsd.org Subject: Re: snapshot management tool? References: <20121213162137.78332@relay.ibs.dn.ua> <50CBD711.8090607@freebsd.org> Date: Sat, 15 Dec 2012 15:25:21 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: <50CBD711.8090607@freebsd.org> User-Agent: Opera Mail/12.11 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: 0.8 X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.1 X-Scan-Signature: 488b5a33f748713be529de57fa847022 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 14:25:28 -0000 On Sat, 15 Dec 2012 02:49:05 +0100, Lawrence Stewart wrote: > 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 Does this also work for a home computer which is not always on? I'm curious about how people handle that. Ronald.