I looked up google on that delete cron — I have that:
17 13 * * * root find /backups/dslcart-* -mtime +6 -exec rm {} \;
But it isn’t working as it is supposed to delete all older files with dslcart-(date). I am not sure where I could go wrong with this?
Any insight would be appreciated.
Why not write a shell script or even easier, a Perl Script to act as your liason for the function of deleting those files? This way you have more control over function and output everytime this event fires off. And this allows you test your function without waiting on your cron events. You’ll simply call the script from your cron.