https://github.com/riptl/hashr
Directory hashing utility, outputs to Redis
https://github.com/riptl/hashr
Last synced: 3 months ago
JSON representation
Directory hashing utility, outputs to Redis
- Host: GitHub
- URL: https://github.com/riptl/hashr
- Owner: riptl
- License: unlicense
- Created: 2018-10-06T21:03:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-05T16:48:16.000Z (over 3 years ago)
- Last Synced: 2024-06-19T11:37:43.469Z (almost 2 years ago)
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### hashR
Simple tool that walks a directory recursively,
and outputs a list of hashes suitable for Redis.
**Usage:**
```
# Write directly to Redis
./hashr /directory | redis-cli
# Write to file and import
./hashr /directory > hashes.redis
redis-cli --pipe < hashes.redis
```
**Info:**
* The output (on stdout) looks like this:
```
SET "" "|||||"
```
* All hashes are hex-encoded.
* `-threads=x` (default: number of cores)
* `-prefix=/path/to/dir` (pretend files are in this dir)
* `-key=HASHDB` (Redis key of the [HASHES](https://redis.io/commands#hash) object)