Encrypt and upload to cloud

Forum for questions and support relating to the 1.30.x releases only.
Locked
trumee
Posts: 69
Joined: Tue Mar 08, 2011 3:33 pm

Encrypt and upload to cloud

Post by trumee »

Hello,

I would like to upload the video/images to the cloud (Digital Ocean) when motion is detected. However, the files should be encrypted first before they are uploaded. Is there any way to do this?

Thanks
starbuck5
Posts: 3
Joined: Mon Jul 09, 2018 7:18 pm

Re: Encrypt and upload to cloud

Post by starbuck5 »

You could use dm-crypt backed by a file on the remote system. Use NFS or SSHFS to get the file to appear locally on your system and then mount it with dm-crypt.

There's a risk of corruption if the connection drops, so don't count on this method as your only method of video storage.

Alternatively, you could make a script to encrypt the files with GPG and then upload them. There's probably a way to shim that into ZoneMinder, (as part of an alert) or it could be done with a cron job.

I'm looking at setting this up on my system in the near future. I'll report back with the method I end up using.
Locked