Delete logs
find /var/log/astguiclient -type f -mtime +1 -exec rm -f {} \;
Delete all no time restrictions
/usr/bin/find /var/spool/asterisk/ monitorDONE/ORIG -maxdepth 2 -type f -print | xargs rm -f
delete only mp3 files other than 7 days running this cron every 9 days
0 0 */9 * * /usr/bin/find /var/spool/asterisk/ monitorDONE/MP3 -maxdepth 2 -type f -name "*.mp3" -mtime +7 -exec rm -f {} \;
No comments:
Post a Comment