mksnapback

mksnapback is an RC script for FreeBSD. During system boot, it'll snapshot a given filesystem if a snapshot hasn't been taken for a configurable amount of time. When the system shuts down, the script will delete any snapshots that are older than a certain time.

Installation

  1. Download mksnapback
  2. Move it to /usr/local/etc/rc.d
  3. Make it executable
  4. Add mksnapback_enable="YES" to /etc/rc.conf.

You may add the following variables to /etc/rc.conf: