- 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
好像在 Big Sur 上,命令格式有变化:https://www.reddit.com/r/MacOS/comments/kerdvg/big_sur_tmutil_delete_no_longer_works/