https://github.com/xyb/chunkdup
Find (partial content) duplicate files.
https://github.com/xyb/chunkdup
content-defined-chunking dedup deduplication fastcdc rolling-hash
Last synced: 7 months ago
JSON representation
Find (partial content) duplicate files.
- Host: GitHub
- URL: https://github.com/xyb/chunkdup
- Owner: xyb
- License: mit
- Created: 2022-11-06T09:09:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T04:33:31.000Z (over 2 years ago)
- Last Synced: 2024-11-09T04:39:59.460Z (8 months ago)
- Topics: content-defined-chunking, dedup, deduplication, fastcdc, rolling-hash
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chunkdup
Find (partial content) duplicate files using [chunksum](https://github.com/xyb/chunksum) outputs.
[](https://github.com/xyb/chunkdup/actions/workflows/test.yml)
[](https://codecov.io/gh/xyb/chunkdup)
[](https://codeclimate.com/github/xyb/chunkdup/maintainability)
[](https://pypi.org/project/chunkdup/)
[](https://pypi.org/project/chunkdup/)```
usage: chunkdup [-h] [chunksums1] [chunksums2]Find (partial content) duplicate files.
positional arguments:
chunksums1 path to chunksums
chunksums2 path to chunksumsoptional arguments:
-h, --help show this help message and exitExamples:
$ chunksum dir1/ -f chunksums.dir1
$ chunksum dir2/ -f chunksums.dir2
$ chunkdup chunksums.dir1 chunksums.dir2
``````
usage: chunkdiff [-h] [-b BAR] [-w BARWIDTH] [-n] [-s CHUNKSUMS]
[file1] [file2]Show the difference of two files.
positional arguments:
file1 path to file
file2 path to fileoptional arguments:
-h, --help show this help message and exit
-b BAR, --bar BAR the style of bar. default: oneline
-w BARWIDTH, --barwidth BARWIDTH
the width of bar. default: 40
-n, --nocolor do not colorize output. default: False
-s CHUNKSUMS, --chunksums CHUNKSUMS
path to chunksums fileExamples:
$ chunksum dir1/ -f chunksums.dir1
$ chunksum dir2/ -f chunksums.dir2$ chunkdiff chunksums.dir1 chunksums.dir2 dir1/file1 dir2/file2
$ chunkdiff chunksums chunksums ./file1 ./file2
```