File Guardian Monitor (all platforms)
A C# and .NET command-line tool that monitors a directory and copies new or changed files out before they can be deleted. It can be compiled for Windows, Linux, and macOS.
When a file event is detected, it creates a hardlink in a staging area, copies the file to a timestamped backup location, and logs the SHA-256 hash, size, and paths. Subdirectories are monitored recursively, with event debouncing, retries for locked files, and a configurable file size limit (1 GB by default).
Requires the .NET 6.0 SDK or later and administrator or root privileges. The tool was coded with Claude Sonnet 4.6. It has been tested on macOS, Linux, and Windows.