Answer the question
In order to leave comments, you need to log in
Cron job to delete certain folders after a certain number of days?
there is a directory
/var/www/user/data/www/mysite.com/scrin/ in it a bunch of folders are created every day like this:
04-12-2017
05-12-2017
06-12-2017
.....
.. ...
into which screenshots are loaded.
and not only those
. So here's how to properly hang a cron task so that it deletes only folders of this type from the /var/www/user/data/www/mysite.com/scrin/ directory that are older than 8 days 04-12-2017, without touching others folders?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question