Skip to content

Instantly share code, notes, and snippets.

@ikuwow
Created October 16, 2016 12:36
Show Gist options
  • Save ikuwow/9b5661c87e7ead2e78ea3a24ce412f76 to your computer and use it in GitHub Desktop.
Save ikuwow/9b5661c87e7ead2e78ea3a24ce412f76 to your computer and use it in GitHub Desktop.
Remove Old Timemachine Backup Script
#!/bin/bash
cd /Volumes/Time\ Machine/Backups.backupdb/Ikuo’s\ Mac\ mini
BACKUPS=(\
2015-03-23-093603
2015-04-13-032009
2015-05-11-005904
2015-06-01-000440
2015-07-06-075631
2015-08-03-004144
2015-09-07-003916
2015-10-05-000135
2015-11-02-013219
2015-12-07-002540
)
for BACKUP in ${BACKUPS[@]}; do
if [ -d $BACKUP ]; then
tmutil delete $BACKUP
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment