Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Dec 2012 12:49:05 +1100
From:      Lawrence Stewart <lstewart@freebsd.org>
To:        Zeus Panchenko <zeus@ibs.dn.ua>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: snapshot management tool?
Message-ID:  <50CBD711.8090607@freebsd.org>
In-Reply-To: <20121213162137.78332@relay.ibs.dn.ua>
References:  <20121213162137.78332@relay.ibs.dn.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50CBD711.8090607>