-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
thc
committed
Sep 24, 2021
1 parent
f526614
commit 16bd0bf
Showing
4 changed files
with
141 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
*.exe | ||
godedup | ||
Trash/* | ||
Trash | ||
vendor | ||
Gopkg.lock | ||
Gopkg.toml | ||
go.sum | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# go-dedup | ||
|
||
go-dedup is a portable golang (Windows/Linux) file de-duplication tool. | ||
|
||
## Description | ||
|
||
Go-dedup find files in path arguments, make fast hash with minio/blake2b-simd , and display identical files names. | ||
|
||
Options includes deletion, link(linux), interactive deletion, ignore pattern and deletion pattern. | ||
|
||
## Getting Started | ||
|
||
### Dependencies | ||
|
||
* [github/minio/blake2b-simd](https://github.com/minio/blake2b-simd) | ||
|
||
### Installing | ||
|
||
```shell | ||
go mod tidy | ||
go build | ||
go install | ||
``` | ||
|
||
### Executing program | ||
|
||
* How to run the program | ||
* Step-by-step bullets | ||
|
||
```shell | ||
$ ./godedup.exe -h | ||
Usage of C:\dev\src\projects\godedup\godedup.exe: | ||
-S Silent (no output) | ||
-f force relink (even with already linked files) | ||
-ignore string | ||
ignore file path regexp | ||
-it | ||
interactive deletion | ||
-link | ||
rm and link | ||
-maxsize int | ||
maximal file size (default 674918400) | ||
-minsize int | ||
minimal file size (default 4096) | ||
-path string | ||
path to dedup (default "/tmp,/dev/null") | ||
-rm string | ||
rm regexp (default "%d") | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module projects/godedup | ||
|
||
go 1.15 | ||
|
||
require github.com/minio/blake2b-simd v0.0.0-20160723061019-3f5f724cb5b1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters