I have an APC UPS BR550GI, an Intel NUC with
Linux Debian on it and a WD 3.5" drive in an external enclosure with power supply, turn on/off switch and it is connected to the NUC via USB 3.0. Both the NUC and the external drive get power from the UPS.
Right now, I've set the NUC to automatically turn off when the UPS is using its battery and it's running low; in this case, the computer will remain on only if the UPS sends a cancel message before the NUC turns off.
Is there a way to automatically turn on the NUC when the UPS returns online?
Instead, talking about the external hard drive, is there a way to tie its turn on/off cycle to the computer's? Basically, I would like to put its hardware switch always to ON and let the computer turn if off/on based on its status (independently from the ups status).
My main goal is the hard drive to turn on with the NUC as it is required inside
In case this is not possible, what is the best way to protect the hard drive from sudden power loss and restart when power is back?
Any kind of suggestions or solutions are welcome, like scripts, DIY hardware, anything.
Thank you so much!