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().
Up Next
- Keep original file mode after hardlinking
- Select leading inode for linking
- Improved exception handling from the command line
Please vote on any issues which are important to you.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file link-duplicates-1.1.0.tar.gz.
File metadata
- Download URL: link-duplicates-1.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a0f9528b91dbe69e968d20f7fc6a059e311c54bbab61e50bc24a3af9ee9f7db
|
|
| MD5 |
95b3464d40aee283a31587762007adee
|
|
| BLAKE2b-256 |
e493405475e355e3cdac72bef303e1e98817353ae752cc436761e7b7dfa7cbd5
|
File details
Details for the file link_duplicates-1.1.0-py3-none-any.whl.
File metadata
- Download URL: link_duplicates-1.1.0-py3-none-any.whl
- Upload date:
- Size: 7.6 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 |
c90abad337e1d1d5925e73ba4d756a500e9887d64b10b23cf72dd8d8acbbdb85
|
|
| MD5 |
2a09c3874f373b688ccb28af200ad7a2
|
|
| BLAKE2b-256 |
dbb01b8bfe932f75feb03100972c50da93d23849424320a91c0f8f90252ed7df
|