Forrest logo
back to the zfs tool

zfs:tldr:0255c

zfs: Create a Snapshot of a ZFS filesystem.
$ zfs snapshot ${pool_name-filesystem_name}@${snapshot_name}
try on your machine

This command creates a snapshot of a ZFS file system within a ZFS storage pool.

Here is the breakdown of the command:

  • zfs snapshot: This is the command itself, used to create a ZFS snapshot.
  • ${pool_name-filesystem_name}: This is a placeholder that should be replaced with the name of the ZFS storage pool and the specific file system within the pool that you want to create a snapshot of. For example, if your ZFS storage pool is named "my_pool" and you want to snapshot the file system called "my_files", you would replace this placeholder with my_pool-my_files.
  • @: This is a separator used to indicate that what follows is the name of the snapshot.
  • ${snapshot_name}: This is a placeholder that should be replaced with the desired name for the snapshot. Choose a name that helps you identify the snapshot easily, such as a timestamp or a meaningful description.

So, when you execute this command with the appropriate values, it will create a snapshot of the specified ZFS file system within the given ZFS storage pool, using the provided snapshot name.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the zfs tool