Help Finding ZFS snapshots

Rolf Nielsen rolnie at bredband.net
Mon Sep 5 16:03:12 UTC 2011


2011-09-05 17:23, Gene skrev:
> On Mon, 05 Sep 2011 10:48:22 -0400, Daniel Staal wrote
>> --As of September 5, 2011 8:13:52 AM -0500, Gene is alleged to have said:
>>
>>> Using FreeBSD 8.1, amd64 - I wanted to recover files from a snapshot of
>>> usr/home. Everything I've found via googling refers to a link such as
>>> "path/zfs/.snapshot"
>>
>> --As for the rest, it is mine.
>>
>> Try "path/.zfs".  ;)
>>
>> (Which, on my system, then has a 'snapshot' directory, which holds
>> all the snapshots.)
>>
>> Daniel T. Staal
>>
>
> No such luck. The following:
>
> cd /
> ls -R | grep -i "zfs"
>
> finds only 'zfs' directories in the source tree and ports.
>
> Other ideas? I know the snapshots exist, I can see 'em with
> "zfs list -t snapshot".

The .zfs directory is normally hidden, so it won't even show up on
ls -a
output.

You have to either explicitly cd to it or make it visible by

zfs set snapdir=visible <filesystem>


More information about the freebsd-questions mailing list