Skip to content

Deduplicate files on your APFS file system (or any file system that supports cloning files via cp -c)

Notifications You must be signed in to change notification settings

capyvara/apfs-deduplicate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

Deduplicate files on your APFS file system.

What is this repository for?

How do I use it?

  • Requires python3
  • To download wget -O deduplicate.py https://raw.githubusercontent.com/capyvara/apfs-deduplicate/master/deduplicate.py && chmod +x deduplicate.py
  • Run ./deduplicate.py -h for help
  • To save time, this script will first compile a list of probable duplicates by computing a hash of the first 1024 bytes of data. Of the probable matches, a hash of the full file contents are then computed, and duplicates are replaced with clones via calling cp -c
  • Note: This script is considered experimental. Although it has been tested on a number of different data sets (git repositories, RDBMS storage, etc.) it should not be run on sensitive data

Credits

https://bitbucket.org/dchevell/apfs-deduplicate/

About

Deduplicate files on your APFS file system (or any file system that supports cloning files via cp -c)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published