-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Archival footage with rclone #6838
Comments
Upload it to where? I don't think it would make sense to be hardcoded to a specific place. This has already been discussed #3673 |
You would give it a binary and a command with template variables to run. If you haven't seen rclone before https://rclone.org/ but pretty much you'd be able to mount your config file and it would then handle all the upload/download for you. |
Ah looks like in the other thread they mainly discuss the same things I want to do. |
Right, I'd be curious what @blakeblackshear thinks but I'd say my opinion is that a more general implementation would be preferable. Something that has a secondary "archive" volume that can be configured, It would be mounted in docker and that way it can be cloud or another local drive and frigate does not need to know / care. |
So the other thread was talking about a cool idea where you could mount data from fast and slow storage and have them merged. |
That seems much more involved, like something only experienced users would be able to do. It would also mean the db handling would have to be done manually vs the former approach where I think it would be easier to have frigate handle the db side automatically. |
For the db it could just be a single column field that says if it's been archived or not. |
I disagree, frigate could certainly handle the moving of the files including updating the location of the file in the DB All the user would have to do is mount the volume and enable archival storage / configure after how many days the recordings are moved in the config and frigate would handle the rest. |
Sorry, I think I'm getting confused. So are you saying it would be fine if frigate handled moving the content, but it would be two docker volume mounts and frigate would move from dir a to dir b and then update the db itself. Then it's up to the user to mount specify the directories mount path and they could do what ever they wanted there |
I'm saying I believe that would be much preferable. The default storage is /media/recordings and a secondary /media/archive-recordings could be used (just as an example)
Yes, exactly. Frigate doesn't know and doesn't care what kind of storage it is. All it knows is the main and secondary storage locations inside the container. |
Okay, I think for my use case I could make that work. So would this be wanted/could I work on this? |
Given that the issue I linked is pinned I believe the answer is yes but let's wait for Blake to give his input. |
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. |
So I wanted to maybe start working on a new feature where instead of deleting content, it could upload it using rclone, keep the record in the db, and then when you wanted to view it it would download the stream and play it back to you.
I was thinking I could work on implementing this and then go through a normal pull request process but I wanted to see if there would be interest in this/ make sure it wasn't already being worked on.
The text was updated successfully, but these errors were encountered: