Skip to content

Instantly share code, notes, and snippets.

@nsforge
Created November 18, 2014 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nsforge/bf7c3d3ed2aba458e21f to your computer and use it in GitHub Desktop.
Save nsforge/bf7c3d3ed2aba458e21f to your computer and use it in GitHub Desktop.
One-liner to delete your oldest Time Machine backup
sudo tmutil delete "`tmutil listbackups | sed -n 1p`"
@nsforge
Copy link
Author

nsforge commented Nov 18, 2014

This came in handy after adjusting the disk quota for TM backups on my NAS - I ran this repeatedly until my Time Machine backups were down to a reasonable size.

@nsforge
Copy link
Author

nsforge commented Nov 19, 2014

In order to actually free up the space on your NAS or external HDD, you also need to run:

hdiutil compact "/Volumes/Time Machine/MY_COMPUTER.sparsebundle"

With the actual path to your Time Machine .sparsebundle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment