E
E
Eugene2015-10-26 11:20:32
Debian
Eugene, 2015-10-26 11:20:32

How to delete folders in which files have not changed for more than a month using cron?

Hello,
Can you please tell me how to set up Cron in Debian 7 to delete folders in which files have not been changed for more than a month?
Thanks to.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bojczuk, 2015-10-26
@Scumtron

Not tested, modify for yourself:
find /* -mtime +30 -type d -delete

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question