tail head cat sleep
QR code linking to this page

Manual Pages  — ZFS-CLONE

NAME

zfs-clone – clone snapshot of ZFS dataset

CONTENTS

SYNOPSIS


zfs clone [-p] [-o property=value ]… snapshot filesystem|volume

DESCRIPTION

See the Clones section of zfsconcepts(7) for details. The target dataset can be located anywhere in the ZFS hierarchy, and is created as the same type as the original.
-o property=value
  Sets the specified property; see zfs for details.
-p
  Creates all the non-existing parent datasets. Datasets created in this manner are automatically mounted according to the mountpoint property inherited from their parent. If the target filesystem or volume already exists, the operation completes successfully.

EXAMPLES

Example 1: Creating a ZFS Clone

The following command creates a writable file system whose initial contents are the same as pool/home/bob@yesterday.

    # zfs

Example 2: Promoting a ZFS Clone

The following commands illustrate how to test out changes to a file system, and then replace the original file system with the changed one, using clones, clone promotion, and renaming:
# zfs
  populate /pool/project/production with data
# zfs
# zfs
  make changes to /pool/project/beta and test them
# zfs
# zfs
# zfs
  once the legacy version is no longer needed, it can be destroyed
# zfs

SEE ALSO

zfs-promote(8), zfs-snapshot(8)

ZFS-CLONE (8) March 16, 2022

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

LISP = Lots of Irritating Silly Parentheses