Created
January 24, 2016 12:50
-
-
Save ptzn/0ffb200c49275164a0a3 to your computer and use it in GitHub Desktop.
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
#!/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