user@de-cpccfslv01:/tmp$ sudo find . -mtime +7 -exec rm -fr {} \;
I need to reliably execute the above command on a group of target servers. It can be executed on a 7 day frequency or it can be exected as a result of a volume alert, we just need it to execute.
How would you go about accomplishing this task? Would it be better to use SAM?
I feel like it shouldn't be this complicated for such a routine task.