Page 1 of 1

S3 storage

Posted: Mon Jan 24, 2022 1:36 am
by Andyrh
I was curious is anyone is using S3 storage?
I was thinking about dropping an S3 server at a friends house to store the last week of events.

Just looking for a bit of advice, do's, dont's, that sort of thing.

The bandwidth will not be an issue. I generate ~8GB of events per day.

Re: S3 storage

Posted: Mon Jan 24, 2022 8:26 am
by Magic919
I don't use it for this purpose, but I'd suggest looking at Rclone and run a sync from time to time.

Re: S3 storage

Posted: Mon Jan 24, 2022 1:56 pm
by iconnor
It works. I recommend recording initially to local storage and use a filter to move events to s3 in the background. Latency is the problem when recording.

Re: S3 storage

Posted: Tue Jan 25, 2022 3:41 pm
by Andyrh
I was thinking of filters to manage the copies, all events will first be written to local disks. Will a filter do well deleting old events from the S3 copy?

As weekend time is available I will post progress. 1st attempt will be to a Ubuntu VM as an S3 server. If that goes well 2nd attempt will be to a Raspberry Pi running Ubuntu. Final step will be the Pi remote.

Things I have to learn:
1. What happens if the S3 server goes away.
2. What happens if I fall behind.
3. Best way to remove old events from S3.
4. Things I don't even know to ask yet.

Re: S3 storage

Posted: Wed Jan 26, 2022 6:12 am
by dougmccrary
Magic suggested Rclone, or rsync would take care of deletions with the right options. It'll basically keep them in sync if you run it periodically.

Re: S3 storage

Posted: Wed Jan 26, 2022 2:25 pm
by Andyrh
How would those tools perform having to scan the events folders (a ridiculous 540k events) to find the events since the last sync and delete the remote copies that are more than a week old? I am not looking to sync all 6TB, just the last 7 days. The remote system will be a Pi with limited storage.
I generate ~1,100 events per day.
I assume that if I use filters to copy the events ZM will be able to play the event from the remote site. With rsync that would not be possible because ZM would be unaware of the copy.

I will add those tools to the list of things to try.

Re: S3 storage

Posted: Wed Jan 26, 2022 3:27 pm
by Magic919
I suppose you'll find out. I can't see playing the remote S3 stuff in ZM going well, but I've never tried it.

Re: S3 storage

Posted: Thu Jan 27, 2022 1:33 pm
by iconnor
I think backup case (in case thieves steal your nvr) is valid. Whether it works or not has a lot to do with your connection speed etc.

At worst it will be a little laggy. At best it will be fine. Was worse back when savign a billion jpegs. With mp4 storage it is much better.

In practice we found deleting from ZM the S3 storage couldn't keep up. Most want to delete by age every night. YMMV.

If anyone is looking to play with this Bifrost Cloud (bifrostcloud.ca) is offering a commission to ZM users and are cheaper than Amazon.