- gfind (via
brew install findutils
) - Time Machine drive mounted on your computer (or you can change path from standard /Volume/Time\ Machine\ Backups/Backups.backup.db/
- Admin/sudo access in the OSX terminal
- Be sure to set the correct machine name. You can check the actual folder things are going into by looking in the backup location.
- By default, it erases all backups older than 30 days. Adjust as desired.
Clean all backups older than 30 days:
sudo ./tmcleanup.sh /Volumes/Time\ Machine\ Backups/Backups.backupdb my_computer_name 30
Clean 50% of backups older than 30 days:
sudo ./tmcleanup_50percent.sh /Volumes/Time\ Machine\ Backups/Backups.backupdb my_computer_name 30
嗯,現在的版本是要加參數了~... -p 我是 11.5