Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99268

Automation to delete files from folder older than x days

$
0
0

@majkers wrote:

Hello,
I would like HA to record short video files when motion in my camera is detected. They will be stored somewhere in www folder let’s say www/camera_motion. I would like to automatically delete content of that folder when it is larger thant 500 MB. I know I might use folder sensor to know folder’s size but I don’t know how to delete files from it but only those which are older than x days. I assume I will need shell command or something. Can anyone please help me? Cheers

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>