Page 1 of 1

Encrypt and upload to cloud

Posted: Sun Jul 08, 2018 3:49 am
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

Re: Encrypt and upload to cloud

Posted: Fri Jul 13, 2018 4:42 pm
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.