Skip to main content

Non-Redundant Media File Copy Tool: resumable, auditable, cross-platform, CLI-based.

Project description

🚀 dedup-file-tools: The Ultimate Toolkit for Safe, Fast, and Auditable File Management

Three powerful CLI tools, one mission: never lose a file, never copy a duplicate, always know what happened, and now—never miss a difference!


✨ New! dedup-file-compare: Instantly spot every difference, missing file, or change between any two folders, drives, or backup pools. Fully auditable and designed for peace of mind. Perfect for backup verification, migration audits, and total confidence!

What Does Each Tool Do?

  • dedup-file-copy-fs: Effortlessly copy files from one place to another—guaranteeing that only a single, non-duplicate copy of each file ever lands in your destination. No more wasted space or accidental double copies!

  • dedup-file-move-dupes: Hunts down duplicate files in any folder or storage pool and safely moves all detected duplicates to a special .dupes directory. It’s the easiest way to clean up your drives and reclaim space—exciting, right?

  • dedup-file-compare: The newest member of the family! Instantly compare two directories (or backup pools) by checksum, size, or modification time. Find missing, extra, or changed files with total auditability. Perfect for backup verification, migration audits, and peace of mind!

All tools are designed for safety, auditability, and total peace of mind!

Why dedup-file-tools?

  • No more accidental duplicates: Move or copy files between drives, folders, or backup pools with confidence—deduplication is automatic.
  • Never miss a difference: Instantly spot missing, extra, or changed files between any two locations. Verify backups, audit migrations, and sleep easy!
  • Resumable & robust: Interrupt a job? No problem. All state is tracked in a job database. Resume anytime, anywhere.
  • Audit everything: Every action, every file, every error—fully logged and queryable.
  • Cross-platform: Works on Windows, Linux, and with both fixed and removable drives.
  • Portable & future-proof: Thanks to UidPath, your job and checksum cache remain valid even if drive letters or mount points change.
  • Agent/AI ready: YAML config, one-shot workflows, and full audit trails make it perfect for automation and integration.

Three Tools, Three Workflows — Pick Your Power!


🆚 dedup-file-compare: The "Spot Every Difference" Workflow

Want to know exactly what changed, what’s missing, or what’s extra between two folders, drives, or backup pools? This is your digital X-ray!
dedup-file-compare is the ultimate tool for backup verification, migration audits, and total confidence in your data. No more guessing—just clear, auditable answers!

Step-by-Step Tutorial

  1. Initialize your compare job:
    dedup-file-compare init --job-dir ./comparejob --job-name comparejob
    
  2. Add your left and right directories:
    dedup-file-compare add-to-left --job-dir ./comparejob --job-name comparejob --dir ./left
    dedup-file-compare add-to-right --job-dir ./comparejob --job-name comparejob --dir ./right
    
  3. Find missing, extra, or changed files:
    dedup-file-compare find-missing-files --job-dir ./comparejob --job-name comparejob
    
  4. Show results, audit, and export:
    dedup-file-compare show-result --job-dir ./comparejob --job-name comparejob --summary
    dedup-file-compare show-result --job-dir ./comparejob --job-name comparejob --output results.csv
    

Want it all in one go? Just run:

dedup-file-compare one-shot --job-dir ./comparejob --job-name comparejob --left ./left --right ./right

And... Voila! Instantly see every difference, missing file, or change—fully auditable and exportable. Sleep easy knowing your data is safe!

See the User Guide for advanced workflows and YAML config power.


🚦 dedup-file-copy-fs: The "Copy Without Duplicates" Workflow

Want to copy your files from one drive or folder to another, but never want to see a duplicate again? This is your magic wand!

Step-by-Step Tutorial

  1. Initialize your copy job:
    dedup-file-copy-fs init --job-dir ./copyjob --job-name copyjob
    
  2. Add your source(s):
    dedup-file-copy-fs add-source --job-dir ./copyjob --job-name copyjob --src ./source
    
  3. Analyze and checksum:
    dedup-file-copy-fs analyze --job-dir ./copyjob --job-name copyjob --src ./source --dst ./dest
    dedup-file-copy-fs checksum --job-dir ./copyjob --job-name copyjob --table source_files
    dedup-file-copy-fs checksum --job-dir ./copyjob --job-name copyjob --table destination_files
    
  4. Copy, with deduplication magic:
    dedup-file-copy-fs copy --job-dir ./copyjob --job-name copyjob --src ./source --dst ./dest
    
    Voila! Only unique files are copied. No duplicates, ever.
  5. Verify and audit:
    dedup-file-copy-fs verify --job-dir ./copyjob --job-name copyjob --stage deep
    dedup-file-copy-fs log --job-dir ./copyjob
    

Want it all in one go? Just run:

dedup-file-copy-fs one-shot --job-dir ./copyjob --job-name copyjob --src ./source --dst ./dest

And... Voila! Your files are safely, uniquely copied.

See the User Guide for advanced tricks and YAML config magic.


🧹 dedup-file-move-dupes: The "Find & Sweep Duplicates" Workflow

Ready to reclaim space and banish duplicate files from your drives? This tool is your digital broom!

Step-by-Step Tutorial

  1. Initialize your dedupe job:
    dedup-file-move-dupes init --job-dir ./myjob --job-name myjob
    
  2. Scan your pool for duplicates:
    dedup-file-move-dupes analyze --job-dir ./myjob --job-name myjob --lookup-pool ./data
    dedup-file-move-dupes checksum --job-dir ./myjob --job-name myjob --table lookup_files
    
  3. Move all detected duplicates to .dupes:
    dedup-file-move-dupes move-dupes --job-dir ./myjob --job-name myjob --dupes-folder ./dupes
    
    Voila! All your duplicate files are safely moved to .dupes for review or deletion.
  4. Summarize and audit:
    dedup-file-move-dupes summary --job-dir ./myjob --job-name myjob
    dedup-file-move-dupes log --job-dir ./myjob
    

Want it all in one go? Just run:

dedup-file-move-dupes one-shot --job-dir ./myjob --job-name myjob --lookup-pool ./data --dupes-folder ./dupes

And... Voila! Your drives are clean and duplicate-free.

See the User Guide for advanced workflows and YAML config power.


Quick Start (Unified)

  1. Install (Recommended):
    pipx install dedup-file-tools
    
    Or, to always get the latest version:
    pipx install dedup-file-tools
    
    Or, for a local development install:
    pip install .
    
  2. Generate a config file (recommended):
    dedup-file-copy-fs generate-config
    # or
    dedup-file-move-dupes --config config.yaml
    # or
    dedup-file-compare --config config.yaml
    
  3. Run a one-shot workflow:
    dedup-file-move-dupes one-shot --job-dir ./myjob --job-name myjob --lookup-pool ./data --dupes-folder ./dupes
    dedup-file-copy-fs one-shot --job-dir ./copyjob --job-name copyjob --src ./source --dst ./dest
    dedup-file-compare one-shot --job-dir ./comparejob --job-name comparejob --left ./left --right ./right
    
  4. Check logs, verify, and audit:
    dedup-file-move-dupes summary --job-dir ./myjob --job-name myjob
    dedup-file-copy-fs verify --job-dir ./copyjob --job-name copyjob --stage deep
    dedup-file-compare show-result --job-dir ./comparejob --job-name comparejob --summary
    

The Magic of UidPath

Both tools use a unique, system-independent path abstraction called UidPath. This means:

  • Your job and checksum cache remain valid even if drive letters or mount points change.
  • You can move drives between systems, plug into different USB ports, and never lose track of your files.
  • Deduplication and verification are robust and portable. See UidPath documentation for details.

Want More?


License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dedup_file_tools-0.1.2.tar.gz (59.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dedup_file_tools-0.1.2-py3-none-any.whl (95.6 kB view details)

Uploaded Python 3

File details

Details for the file dedup_file_tools-0.1.2.tar.gz.

File metadata

  • Download URL: dedup_file_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 59.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.0

File hashes

Hashes for dedup_file_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cccafd151c5f7d565f59e1c50aa85ac1d58c9b89a51336e81aa93cd7e56b9e7f
MD5 21d6adce3d26094a013c77c01c494ea0
BLAKE2b-256 6100f7d1c25d79798efbe86a54d27d04bbf83141243c2a36eb06ef3a99e3bb02

See more details on using hashes here.

File details

Details for the file dedup_file_tools-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dedup_file_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 44dfee63a24890800bd0b5b22b7aa1a3ece51b9d52151c09213b44f6cedd317d
MD5 25752377bb816d19e4b81b41b45db0da
BLAKE2b-256 f3069836c6c41955aded5ca19529e463afcd2bc1f3fbbbef00f343f8d019a42d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page