Skip to content

Instantly share code, notes, and snippets.

@ptzn
Created January 24, 2016 12:50
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 ptzn/0ffb200c49275164a0a3 to your computer and use it in GitHub Desktop.
Save ptzn/0ffb200c49275164a0a3 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Remove backups older than a given days
TM_PATH=/Volumes/stuff0/Backups.backupdb/zeus
DAYS=60
sudo find "${TM_PATH}" -maxdepth 1 -mtime +${DAYS} -type d -execdir tmutil delete '{}' \;
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment