ZFS Snapshots and Clones

ZFS Snapshots and Clones

To create a snapshot:
#zfs snapshot pool-name/filesystem-name@ snapshot-name

To clone a snapshot:
#zfs clone snapshot-name filesystem-name

To roll back to a snapshot:
#zfs rollback pool-name/filesystem-name@snapshot-name

zfs send and zfs receive allow clones of filesystems to be sent to a development environment.

The difference between a snapshot and a clone is that a clone is a writable, mountable copy of the file system. This capability allows us to store multiple copies of mostly-shared data in a very space-efficient way.

Each snapshot is accessible through the .zfs/snapshot in the /pool-name directory. This can allow end users to recover their files without system administrator intervention.

Leave a Reply

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