#directory-tree #snapshot #save #record #path #hash #xattr

app tree-snapshot

A tool to create and manage snapshots of directory trees

1 unstable release

new 0.1.0 Jun 7, 2024

#291 in Filesystem

MIT license

16KB
354 lines

tree-snapshot

A simple tool to take a snapshot of a directory tree and save it to a file.

The snapshot is a .csv file that is sorted by the path of each file in the directory tree. Each record in the output has fields for metadata and optionally a SHA256 hash of the file contents. Xattr metadata are also saved in the snapshot - and their contents are also hashed.

Purpose

This tool is useful for creating a snapshot of a directory tree that can be used to compare against another snapshot to determine if any files have been added, removed, or changed.

Installation

cargo install tree-snapshot

Usage

tree-snapshot <directory> --output <output-file>

License

MIT

Dependencies

~11–22MB
~370K SLoC