ZFS diff since last snapshot

Just a quick bash script

SNAP=backup-zfs_2026-04-24_10:34:38
POOL=tank

zfs list -H -o name -r $POOL | while read ds; do
  if zfs list -H -t snapshot ${ds}@${SNAP} >/dev/null 2>&1; then
    echo "[DATASET] $ds"
    zfs diff ${ds}@${SNAP}
  fi
done

Leave a Reply

Your email address will not be published. Required fields are marked *