Accessing the Hidden File System Snapshot Directory (CLI)

Use the following procedure to access file system snapshots over data protocols at .zfs/snapshot in the root of your file system.

  1. In a terminal window, go to the directory where you mounted the share.
  2. View contents of the .zfs/snapshot directory.

    You can list snapshots of this file system and can view the contents of each snapshot.

Example 6-1 Accessing .zfs/snapshot

The following example shows that two file-system snapshots called demo_snap1 and demo_snap2 are mounted at /mnt/demo. The ls -l /mnt/demo/.zfs/snapshot/demo_snap1 command shows that the demo_snap1 snapshot contains three files called file1, file2 and file3.

$ ls -1 /mnt/demo
/mnt/demo
$ ls -1 /mnt/demo/.zfs/snapshot
demo_snap1
demo_snap2
$ ls -1 /mnt/demo/.zfs/snapshot/demo_snap1
file1
file2
file3