Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] - Separate folders for currently recording and stored recording files #1013

Closed
artlov opened this issue Apr 20, 2021 · 3 comments
Closed
Labels

Comments

@artlov
Copy link

artlov commented Apr 20, 2021

It would be nice to have separate folders for currently recorded and already stored files. It helps to mount already recorded files to the external storage (e.g. NAS) and leaving file capturing to the local instance.
For example, today we have this setup:

root@a05602958a69:/opt/frigate# ls -lah /media/frigate/recordings/
total 49M
drwxr-xr-x 3 root root 4.0K Apr 20 11:43 .
drwxr-xr-x 4 root root 4.0K Apr  8 14:50 ..
drwxr-xr-x 6 root root 4.0K Apr 20 00:01 2021-04
-rw-r--r-- 1 root root 5.3M Apr 20 11:43 aicam-20210420114323.mp4
-rw-r--r-- 1 root root 1.1M Apr 20 11:43 ezviz-20210420114324.mp4
-rw-r--r-- 1 root root 7.1M Apr 20 11:43 hdipc-20210420114325.mp4
-rw-r--r-- 1 root root  15M Apr 20 11:43 hik1-20210420114323.mp4
-rw-r--r-- 1 root root  15M Apr 20 11:43 hik2-20210420114323.mp4

If we do mount /media/frigate/recordings to the NAS, then actual being writing *.mp4 files will be moved over network as well, which probably not good from performance view.
Would be nice to have one additional folder before YYYY-MM (2021-04) folder, like (just example of idea):
/media/frigate/recordings/stored/2021-04
In this case we can mount /media/frigate/recordings/stored to the external storage and give possibility to increase amount of stored recorded days (NAS have way bigger storage than local HA host)

@stale
Copy link

stale bot commented May 20, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 20, 2021
@blakeblackshear
Copy link
Owner

The files are moved from the initial location to the new location anyway. Won't that copy operation be the same amount of bandwidth?

@stale stale bot removed the stale label May 20, 2021
@stale
Copy link

stale bot commented Jun 19, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 19, 2021
@stale stale bot closed this as completed Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants