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.5.tar.gz
.
File metadata
- Download URL: link-duplicates-0.1.5.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c11d95e56b2d1ebd7c1156dc6dfd36269938f9ad1850c32258b413878dba369e |
|
MD5 | e1f5a23cf5cd1a4b74ae25712ec5e271 |
|
BLAKE2b-256 | 60098be09b48e19c1ca142f5a57d092c00ddac91c8e2cdcaf09f6753441d2bce |
File details
Details for the file link_duplicates-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: link_duplicates-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.9 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 | 773a1d3e51b85851cb65832804159589ba96021227c55d9464ecc2b5886db0f9 |
|
MD5 | 8c29c33e878a968e8a174c5914ab4437 |
|
BLAKE2b-256 | 4c62baa4155dcbc9b2477aecd2a58159a11fe3dc6db0c9c13b7e19f1b347e3a6 |