Hello everybody!
Am am in a pickle and I am looking for any kind of solution to:
Synchronize a local folder to a sftp storage in another location of mine.
What I do have:
Location 1 with: an sftp server working well, accessible over the internet. Also available here is rsync on same server, behind a reverse proxy, with a vpn server.
Location 2 with:
Tapo wireless sun powered cameras that record to local sd card and send videos to tapo care premium app. Being solar powered, they do not have an always on rtsp or onvif stream, so they can’t be used in motioneye or other surveillance software.
Home assistant local server with “Tapo:Cameras control” which is able to pull cameras’ recordings to local storage, inside HA.
I want to be able to synchronize the recordings, as fast as possible, from location 2 to location 1’s storage server.
How could I do this as I am not able to find an easy way to mount the sftp storage in home assistant. (i.e. no way) And the Rsync has to be run, it is not a LIVE action.
If you want to synchronise two storage locations there are better ways than using HA (if it is even possible). Search the internet for “rsync”. You will need to run it on a server.
EDIT: A quick search did reveal these add-ons if you are using HA OS: Rsync Addon(s)
So Rsync is not a viable option, as it must be run in order to do the sync.
I need something that will do the synchronization LIVE.
I need to have the recordings instantly on my of-site storage, as soon as they are uploaded to the home assistant directory.
You can use cron to start it as often as you need. Preferably a period longer than the time it takes for a transfer.
A better option might be to set up a VPN between the two sites so that the remote Tapo cameras look like they are on your local LAN and can be accessed directly by the integration.
I am not super knowledgable about the capabilities of sftp but it doesn’t sound like its the right solution to the problem.
If you need real time video to be available in two locations you probably need to find some technology to “stream” it, so that it gets written to both hard drives simultaneously.
That way whenever you want to display/look at the feed you can simply point your viewer to the local file system.
Thank you for the reply.
Yes, I have thought of that, also, i found folder watcher to use as a trigger to start the rsync add-on.
I have received the VPN idea more than once, but I need to have the home assistant instance with the plugin and the cameras on the same network. This will generate some traffic, and I would not want to VPN all of these to my other location.
I updated the main post with some more details about my structure.
Hi!
Yes, that would be best, if the cameras were powered by cable. But these are solar/battery powered and they are not streaming rtsp or onvif so I can’t use those. That is why I am using Tapo:Cameras Control in home assistant to pull the reordings from the sd cards of the cameras. This is already a delay between the action happening and the recording getting pulled to loca server, so it would be best to write it directly to an offsite storage location.