Autodelete Old files on Remote Storage (homeassistant) #1015
Unanswered
deepanshu-sh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i am copying the files onto my Homeassistant server but it eventually runs out of space. I managed to create the below script in configuration.yaml but its not working.
Anyone has any similar exp?
/homeassistant/configuration.yaml
shell_command:
purge_tesla_files: find /media/* -type f -name '*.mp4' -mtime +27 -print -delete >> /media/tesla_cleanup.log 2>&1
Automation Scripts
alias: Purge TESLA recordings
description: Purge TESLA recordings 25 Days old
triggers:
at: "22:00:00"
actions:
data: {}
mode: single
Beta Was this translation helpful? Give feedback.
All reactions