Answer the question
In order to leave comments, you need to log in
Is there a software that saves the log, how to delete old logs from the folder?
Good afternoon, there is Rapsberry pi, there is software that saves logs (pictures), although there is a lot of memory, but someday it may run out.
There is a task to delete pictures old by date. Ideally, I want the log folder to be no more than 10-12 GB, the rest is deleted.
The idea is to write a Python script that will look at the size of the folder, and if the size exceeds 10 GB, delete the last 100 photos.
And run this script by cron every day.
But maybe there is a better solution?
Answer the question
In order to leave comments, you need to log in
logrotate with your config
https://askubuntu.com/questions/405663/configuring...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question