I searched online for a command that would delete any recordings that are 90 days old. But i don’t think its actually working, i posted what i have there. Just wanna know if the command i entered is correct. If its not, how close did i get to getting it correct. Here it is:
Code:
Also if there is a possibility of subdirectories which could be older than 90 days but should not be deleted, you would want to add -type f to the find.
Depends on the shell, and we were not given the complete crontab. Csh knows about {}.
Anyway what is wrong with the -delete argument? It is specifically for this sort of job, descends directories, only removes files, and is shell independent.
Well the reason for this script in the crontab is for recordings. I am a newbie when it comes to linux, been working with linux for 6 months but the opensuse version that i am using does not have a desktop everything is done through command prompt. Its for a predictive dialer and i don’t want to keep recordings that are more than 90 days old. I thought i had the line of code correct but didn’t know notice it was not working till i saw the hard drive space increasing. Plus i backup all recordings to a backup server. Now its just a matter of which one to use -delete or the {}. Which would y’all recommend??