tail head cat sleep
QR code linking to this page

Manual Pages  — ZFS-DIFF

NAME

zfs-diff – show difference between ZFS snapshots

CONTENTS

SYNOPSIS


zfs diff [-FHth] snapshot snapshot|filesystem

DESCRIPTION

Display the difference between a snapshot of a given filesystem and another snapshot of that filesystem from a later time or the current contents of the filesystem. The first column is a character indicating the type of change, the other columns indicate pathname, new pathname (in case of rename), change in link count, and optionally file type and/or change time. The types of change are:
- The path has been removed
+ The path has been created
M The path has been modified
R The path has been renamed
-F
  Display an indication of the type of file, in a manner similar to the -F option of ls(1).
B Block device
C Character device
/ Directory
> Door
|amp; Named pipe
@ Symbolic link
P Event port
= Socket
F Regular file
-H Give more parsable tab-separated output, without header lines and without arrows.
-t Display the path's inode change time as the first column of output.
-h Do not \0ooo-escape non-ASCII paths.

EXAMPLES

Example 1: Showing the differences between a snapshot and a ZFS Dataset

The following example shows how to see what has changed between a prior snapshot of a ZFS dataset and its current state. The -F option is used to indicate type information for the files affected.
# zfs
M       /       /tank/test/
M       F       /tank/test/linked      (+1)
R       F       /tank/test/oldname -> /tank/test/newname
-       F       /tank/test/deleted
+       F       /tank/test/created
M       F       /tank/test/modified

SEE ALSO

zfs-snapshot(8)

ZFS-DIFF (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.

A typical Unix /bin or /usr/bin directory contains a hundred different kinds of programs, written by dozens of egotistical programmers, each with its own syntax, operating paradigm, rules of use ... strategies for specifying options, and different sets of constraints.
— The Unix Haters' handbook