snapshot management tool?

Lawrence Stewart lstewart at freebsd.org
Sat Dec 15 01:49:15 UTC 2012


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 at 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


More information about the freebsd-fs mailing list