Andrew Daugherity
2010-Feb-04 18:15 UTC
[zfs-discuss] How to get a list of changed files between twosnapshots?
>>> Richard Elling <richard.elling at gmail.com> 2/3/2010 6:06 PM >>>On Feb 3, 2010, at 3:46 PM, Ross Walker wrote:> On Feb 3, 2010, at 12:35 PM, Frank Cusack <frank+lists/zfs at linetwo.net> wrote: > > So was there a final consensus on the best way to find the difference between two snapshots (files/directories added, files/directories deleted and file/directories changed)? > > Find won''t do it, ddiff won''t do it, I think the only real option is rsync. Of course you can zfs send the snap to another system and do the rsync there against a local previous version.bart(1m) is designed to do this. -- richard Unless something has changed in the past couple months, bart(1m) does not work on large filesystems (2TB limit, I think). http://opensolaris.org/jive/message.jspa?messageID=433896#433896 My solution to this was rsync in dry-run mode between two snapshot directories, which runs in a few seconds and lists both added/changed files and deleted files. http://opensolaris.org/jive/message.jspa?messageID=434176#434176 -Andrew