Skip to content

Experimental utility to infer and display the minimal commands necessary to recreate imported ZFS pools and datasets with current properties. Tested on OpenZFS on OS X.

License

Notifications You must be signed in to change notification settings

josephvusich/zinfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zinfer: ZFS Infer

Over time, a pool or dataset's properties may change from those originally passed to zpool create or zfs create. Rather than relying on zpool history, zinfer parses the properties of imported pools and their datasets and infers the minimal zpool create or zfs create command(s) necessary to duplicate the current configuration.

Installation

  • go install github.com/josephvusich/zinfer@latest

Usage

usage: zinfer [--minimal-features] [--recursive] [dataset ...]
      --help              show this help message
      --minimal-features  omit enabled pool features that are not currently active
  -R, --recursive         recursively include descendant datasets of the specified parents

About

Experimental utility to infer and display the minimal commands necessary to recreate imported ZFS pools and datasets with current properties. Tested on OpenZFS on OS X.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages