Identify duplicate files and optionally create hardlinks to save storage
Project description
Duplicates
Identify duplicate files and replace them with hardlinks on any OS.
Intended to be used to reduce the storage space taken up by mutliple copies of similar backups. (E.g. regular google takeouts)
Usage
Can be run from a command line in Linux, MacOS or Windows and will recursively scan a directory, identify and optionally hardlink any duplicate files found.
WARNING: Hardlinking files means if you change any one "copy" all "copies" will change.
Command line
dupes PATH
will display number of duplicate files found under PATH
dupes --list PATH
will list the full sets of duplicate files found
dupes --short PATH
will only list sets of duplicates where there are different file names
and finally ...
dupes --link PATH
will replace duplicate files with hard links
Python
You can also use the class DuplicateFiles
to indentify and optionally link duplicates.
Additionally BufferedIOFile
provides a binary file which knows its Path
and offers a readchunk()
method similar to the text file readline()
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file link-duplicates-0.1.6.tar.gz
.
File metadata
- Download URL: link-duplicates-0.1.6.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1564161268c7f4b25d78a9c474a896ff2817e286928465b4e39b101dbe44af87 |
|
MD5 | a66728b798bdc297ccee5118997bc90c |
|
BLAKE2b-256 | ab212fb018c6ca7bd311e4510f56be901dae46a96594072e828ce4e7c3c79f56 |
File details
Details for the file link_duplicates-0.1.6-py3-none-any.whl
.
File metadata
- Download URL: link_duplicates-0.1.6-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb296097e83d666dd8dccf7daf495cde4647b582fb005df93a715fc2983d518e |
|
MD5 | 44225fadaf84da7ed93e0f9ab5d51e44 |
|
BLAKE2b-256 | 8752cb5ac6bd80d572899c205a3d80566044d14fb8fa688407c720a7cb24ffbf |