Skip to content
This repository has been archived by the owner on Apr 1, 2021. It is now read-only.

Time Machine Cleanup

License

Notifications You must be signed in to change notification settings

NiceLabs/time-machine-cleanup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time Machine Cleanup

Script

  • By default, it erases all backups older than 30 days. Adjust as desired.

Usage

$ ./tm-cleanup.py
This script must be run as root!
$ sudo ./tm-cleanup.py
Removing old Time Machine Backups for older than 30 days, 0:00:00
Deleting: /Volumes/Time Machine Backups/Backups.backupdb/****/2021-01-18-045413
Deleted (349.3M): /Volumes/Time Machine Backups/Backups.backupdb/****/2021-01-18-045413
Total deleted: 349.3M
Elapsed time: 0:28:55.890715
Finished!

References

LICENSE

CC-0