Created
May 17, 2017 11:07
-
-
Save varnav/8d3e83a4adc168d276af14d37934a304 to your computer and use it in GitHub Desktop.
Clean up old mp3 records
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 | |
| #find . -mtime +90 -exec mv {} /monitor/mp3/todelete \; | |
| # Delete older than n days | |
| find /monitor/mp3/ -mtime +60 -delete | |
| find /backups/ -mtime +180 -type f -delete | |
| #Delete files smaller than n K | |
| find /monitor/mp3/ -size -30k -type f -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment