Here is a ZFS replication script I found that works extremely well to automatically snapshot ZFS datasets.

Kudos to the author Ryan Kernan for writing it.

It also does the following:

  • Maintains a certain number of snapshots and automatically deletes the old ones when they expire.
  • Automatically ZFS sends incremental snapshots to a remote target ZFS Server.
  • Gives you peace of mind that your Virtual Machines and snapshots are being backed up!

Download Script