Skip to content

Instantly share code, notes, and snippets.

@joeworkman
Created September 8, 2014 20:07
Show Gist options
  • Save joeworkman/b63207574233afb5a3ae to your computer and use it in GitHub Desktop.
Save joeworkman/b63207574233afb5a3ae to your computer and use it in GitHub Desktop.
Cleanup Time Machine Backups older than 90 days
# You need the put in the full path to the directory that has your backups
# This directory will have a bunch of folders that are named with dates
sudo find "/Volumes/Full Path/To Backup/Directory" -type d -ctime +90 -maxdepth 1 -exec tmutil delete {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment