ep1cman / unifi-protect-backup

Python tool to backup unifi event clips in realtime
MIT License
635 stars 31 forks source link

Feature Request: Ability to run this directly on to UDM Pro etc. #48

Closed ep1cman closed 6 months ago

ep1cman commented 2 years ago

Since UnifiOS uses containers already it should be fairly trivial to add support for running this tool directly on such devices.

See for reference: https://github.com/unifi-utilities/unifios-utilities

jmerriweather commented 1 year ago

I've done an initial attempt here: https://github.com/jmerriweather/unifios-utilities/tree/add-unifi-protect-backup/unifi-protect-backup

However, couldn't get it to work. Keeps getting an error from the container "/package/admin/s6-overlay-3.1.2.1/libexec/stage0: exec: line 87: /run/s6/basedir/bin/init: Permission denied"

ep1cman commented 1 year ago

Thanks for attempting this! s6 is the init system used inside the container to run the service. It's very strange to see that fail like this.

I'm very busy this week but can have a look during the weekend to help figure out what's going wrong.

ep1cman commented 1 year ago

https://github.com/just-containers/s6-overlay#fixing-ownership-and-permissions

This looks relevant

mhallin79 commented 7 months ago

I'm very interested in this. Did this issue get resolved? Is it possible to run this container on UDM Pro?

ep1cman commented 7 months ago

Its not something I ever investigated. Given performance issues that have been seen on devices with low memory, I would not recommend running this directly on the UDM Pro

ep1cman commented 6 months ago

As per: https://blog.tompaulus.com/backing-up-unifi-protect/ Looks like running this on the NVR itself is indeed a bad idea

Closing this ticket