Source

zfs-tools / README

Full commit

A few ZFS tools, mostly related to snapshotting, cleaning up and synching.

SYNOPSIS

  # Snapshot any dataset, snapshot name is the current date/time in a 
  # normalized format: 
  zfs_snapshot pool1/my/dataset
  
  # List snapshots that are obsolete, given some rules about what is 
  # considered obsolete: 
  echo pool1 | zfs_list_obsolete_snapshots

  # Safely destroy some dataset (recursively). This will always ask for
  # permission!
  zfs_safe_destroy pool1/my/dataset