Created
November 18, 2014 11:25
-
-
Save nsforge/bf7c3d3ed2aba458e21f to your computer and use it in GitHub Desktop.
One-liner to delete your oldest Time Machine backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo tmutil delete "`tmutil listbackups | sed -n 1p`" |
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
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.