[zfs-discuss] Snapshot creation time
Chris Baker
osol at lhc.me.uk
Fri Aug 28 07:51:58 PDT 2009
I'm using "find" to run a directory scan to see which files have changed since the last snapshot was taken. Something like:
zfs snapshot tank/filesystem at snap1
... time passes ...
find /tank/filesystem -newer /tank/filesystem/.zfs/snap1 -print
Initially I assumed the time data on the .zfs/snap1 directory would reflect the time the snapshot was taken - but the time values were earlier than that. So I thought perhaps it was the time of the last filesystem modification, but now that seems not to be the case. The above "find" line is discovering files in the snapshot newer than the snapshot root directory which just seems odd.
Please can anyone advise what time data is being used for the snapshot root directory?
Also - please can anyone advise any better approach than grepping zpool history to find an accurate-to-the-second snapshot creation or filesystem modification time? I suppose I could encode the time in the snapshot name, but that feels clumsy. "zfs get creation" will only give me to the nearest minute.
Appreciate any observations.
Cheers
Chris
--
This message posted from opensolaris.org
More information about the zfs-discuss
mailing list