![]() |
![]()
| ![]() |
![]()
NAME
SYNOPSIS
DESCRIPTIONCreates a snapshot of a dataset or multiple snapshots of different datasets. Snapshots are created atomically. That is, a snapshot is a
consistent image of a dataset at a specific point in time; it includes all
modifications to the dataset made by system calls that have successfully
completed before that point in time. Recursive snapshots created through the
See the Snapshots section of zfsconcepts(7) for details. EXAMPLESExample 1: Creating a ZFS SnapshotThe following command creates a snapshot named yesterday. This snapshot is mounted on demand in the .zfs/snapshot directory at the root of the pool/home/bob file system. # Example 2: Creating and Destroying Multiple SnapshotsThe following command creates snapshots named yesterday of pool/home and all of its descendent file systems. Each snapshot is mounted on demand in the .zfs/snapshot directory at the root of its file system. The second command destroys the newly created snapshots. # # Example 3: Promoting a ZFS CloneThe 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: # Example 4: Performing a Rolling SnapshotThe following example shows how to maintain a history of snapshots with a consistent naming scheme. To keep a week's worth of snapshots, the user destroys the oldest snapshot, renames the remaining snapshots, and then creates a new snapshot, as follows: # SEE ALSOzfs-bookmark(8), zfs-clone(8), zfs-destroy(8), zfs-diff(8), zfs-hold(8), zfs-rename(8), zfs-rollback(8), zfs-send(8)
|