Replies: 5 comments 4 replies
-
That's a great idea! What comes to my mind is to use find command to delete directories without .nodelete or .preserve file inside. |
Beta Was this translation helpful? Give feedback.
-
Only 100GB? You can keep that much on the Pi itself. |
Beta Was this translation helpful? Give feedback.
-
Just sharing my approach to cleaning out the archive target.
I have these commands running once a day in the crontab of the system that teslausb rsync’s with:
/usr/bin/find /mnt/TeslaCam/SentryClips/ -mtime +45 | xargs rm -rf {}
/usr/bin/find /mnt/TeslaCam/SentryClips -type d -empty -delete
/usr/bin/find /mnt/TeslaCam/SavedClips/ -mtime +45 | xargs rm -rf {}
/usr/bin/find /mnt/TeslaCam/SavedClips -type d -empty -delete
The first line returns all the SentryClips files older than 45 days and deletes them
The second line removes any empty SentryClips folders
The third and forth line do the same for SavedClips
It’s not a one-liner, but simple enough to implement.
Love the project.
… On Oct 18, 2023, at 11:35 AM, KrzysztofHajdamowicz ***@***.***> wrote:
Looks like GPT-3.5 did it slightly less fishy: https://chat.openai.com/c/3ed4f0a5-d13b-4db3-a9f3-98236dc08b82
—
Reply to this email directly, view it on GitHub <#792 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AO3B6UPN2MYTSDRHJA6FFO3YAAHM7AVCNFSM6AAAAAA6FWVUHCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TGMJYGM3DI>.
You are receiving this because you are subscribed to this thread.
|
Beta Was this translation helpful? Give feedback.
-
So, what's your contab file look like? Are you running it on a timed schedule? At boot? I generally agree that the ideal place to manage this would be on the NAS. My concern is the inconsistency in my Pi being on the network. |
Beta Was this translation helpful? Give feedback.
-
For others looking for another option, I created a Windows PowerShell script that can be used manage (delete) files. I did a write up on it here: #824 |
Beta Was this translation helpful? Give feedback.
-
I have my teslausb setup via CIFS shared with my NAS. The NAS folder has a disk quota of 100GB. Is there a way for teslausb to removed older recordings from the shared folder in order to have enough disk space to upload newer recordings?
Beta Was this translation helpful? Give feedback.
All reactions