You could use a UPS but mine always comes back online when it loses power. I had a power surge yesterday morning and it came right back online.
These things are more resilient than people give them credit for.
Plus if your node loses power chances are your internet is also down so the node is dead anyways.