QuantoDupClean – A way to manage duplicates easily

mou76641 pts0 comments

r2innovation/QuantoDupClean - Codeberg.org

This website requires JavaScript.

r2innovation/QuantoDupClean

Watch

Star

Fork

You've already forked QuantoDupClean

Code

Issues

Pull requests

Releases

Activity

No description

1 commit

1 branch

0 tags

45 KiB

C++

96.9%

Makefile

2.1%

1%

master

Find a file

HTTPS

Download ZIP<br>Download TAR.GZ<br>Download BUNDLE

Open with VS Code

Open with VSCodium

Open with Intellij IDEA

mou7764

3d0cbbc8e5

Initial software

2026-06-16 16:00:34 -04:00

LICENSE.html

Initial software

2026-06-16 16:00:34 -04:00

LICENSE.txt

Initial software

2026-06-16 16:00:34 -04:00

main.cpp

Initial software

2026-06-16 16:00:34 -04:00

Makefile

Initial software

2026-06-16 16:00:34 -04:00

qdc_checksum_lib.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_checksum_lib.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_config.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_config.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_deleter.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_deleter.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_duplicate_finder.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_duplicate_finder.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_hasher.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_hasher.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_interactive.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_interactive.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_logger.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_progress.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_scanner.cpp

Initial software

2026-06-16 16:00:34 -04:00

qdc_scanner.h

Initial software

2026-06-16 16:00:34 -04:00

qdc_types.h

Initial software

2026-06-16 16:00:34 -04:00

README.md

Initial software

2026-06-16 16:00:34 -04:00

README.md

QuantoDupClean

Version 1.0 2026-06 beta

Author: R² Innovation Technologies

Website: codeberg.org/r2innovation/QuantoDupClean

Organization: r2innovation.github.io

License: R² Innovation Technologies License (based on Apache 2.0) – see license.txt

Overview

QuantoDupClean is a minimal‑dependency, Linux‑centric command‑line tool that scans two or more directories for duplicate files using cryptographic checksums.

It ignores file names and directory structure – only the actual content matters.

The first directory you provide is treated as the primary (safe) directory ; duplicates found in the other directories can optionally be deleted after a clear confirmation.

Key features:

Non‑interactive (default) and interactive terminal modes.

Wide choice of checksum algorithms – from simple CRC32 to SHA3‑512 (default), BLAKE2, and more.

Progress bars for scanning, hashing, and deletion.

Logging to customisable output directory and file prefix.

Single‑line command generator (interactive mode) – copies exactly the options needed for non‑interactive reuse.

Safe deletion – never deletes files from the primary directory; confirmation required (or --yes for automation).

Supported Checksum Algorithms

BLAKE2S, BLAKE2SP, BLAKE2B, BLAKE2BP, CHECKSUM32, CRC32, HAVAL, MD4, MD5, RIPEMD128, RIPEMD160, SFV (CRC32 alias), SHA1_160, SHA2_224, SHA2_256, SHA2_384, SHA2_512, SHA3_224, SHA3_256, SHA3_384, SHA3_512 (default) , TIGER.

Dependencies

C++17 (GCC 8+ or Clang 7+)

OpenSSL development libraries (libssl-dev)

pthread (usually part of libc)

GNU Make and standard build tools

On Debian/Ubuntu:

sudo apt install build-essential libssl-dev

Installation

Clone the repository:<br>git clone https://codeberg.org/r2innovation/QuantoDupClean.git<br>cd QuantoDupClean

Build with make:<br>make<br>The binary quantoDupClean is created in the current directory.

(Optional) Install system‑wide:<br>sudo cp quantoDupClean /usr/local/bin/

Usage

Non‑interactive mode (default)

./quantoDupClean --dirs /primary/dir,/backup1,/backup2 [OPTIONS]<br>Required:

-d, --dirs DIR1,DIR2,... – comma‑ or space‑separated list of directories.

The first one is the primary directory (files kept). All duplicates found in the other directories are candidates for deletion.

Optional flags:

-a, --algorithm ALGO – choose hash algorithm (e.g. SHA3_512, BLAKE2B, MD5). Default: SHA3_512.

-D, --delete – enable deletion of duplicate files in non‑primary directories.

-y, --yes – auto‑confirm deletion (use with caution, good for scripting).

-L, --log-dir DIR – output directory for log files (default ./logs).

-P, --log-prefix PREFIX – log file name prefix (default qdc_run).

-v, --version – show version information.

-h, --help – show help.

Example:

./quantoDupClean -d /docs/primary,/backup/usb -a BLAKE2B --delete --log-dir /var/log/qdc -P weekly<br>Interactive mode

Launch the interactive terminal menu:

./quantoDupClean --interactive<br>From there you can select directories, algorithm, enable deletion, change log settings, start the scan, or generate a reusable single‑line command .

Generate a command (non‑interactive...

initial software quantodupclean interactive directory default

Related Articles