Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T04:33:31.000Z (almost 2 years ago)
- Last Synced: 2024-09-05T08:19:34.698Z (2 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.
[![test](https://github.com/xyb/chunkdup/actions/workflows/test.yml/badge.svg)](https://github.com/xyb/chunkdup/actions/workflows/test.yml)
[![codecov](https://codecov.io/gh/xyb/chunkdup/branch/main/graph/badge.svg?token=TVFUKMLFMX)](https://codecov.io/gh/xyb/chunkdup)
[![Maintainability](https://api.codeclimate.com/v1/badges/0935f557916da1fdcddb/maintainability)](https://codeclimate.com/github/xyb/chunkdup/maintainability)
[![Latest version](https://img.shields.io/pypi/v/chunkdup.svg)](https://pypi.org/project/chunkdup/)
[![Support python versions](https://img.shields.io/pypi/pyversions/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
```