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.
WARNING: If other hardlinks are present outside the directories scanned, these may no longer point to the same inode as those within the scanned directories. Consider the situation as undefined.
Command line
dupes PATH
will display number of duplicate files found under PATH
dupes PATH1 PATH2 ...
will display number of duplicate files found under and across PATH1
and PATH2
dupes --list PATHS...
will list the full sets of duplicate files found
dupes --short PATHS...
will only list sets of duplicates where there are different file names
and finally ...
dupes --link PATHS...
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.4.0.tar.gz
.
File metadata
- Download URL: link-duplicates-0.4.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d2a9138712cba217c8fa78408eeb56ab45ff3af2c6ca7c698ea04f46c4ad5f2 |
|
MD5 | 9ed29df11649be8206af3506d9e33aed |
|
BLAKE2b-256 | 938d94ff4b4e5a456aa8522bb830c41b8189e0aa4753a502930a00646a9bd6b5 |
File details
Details for the file link_duplicates-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: link_duplicates-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.0 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 | 6ba1e836f93c96426d1d86f97cb0324d31f2487a795448625d298068145df81c |
|
MD5 | ca4bfdf0e7378f1e64e58b56d3c359a4 |
|
BLAKE2b-256 | 6098560e9c2d4d379724f944ae7216f0c08f57d8cd89e2b891e7483fc6a1e8dd |