2026-09-23
Best Compact UPS Battery Backup for Raspberry Pi 5 and Mini PC Homelab (USB-C and DC Output)
A Raspberry Pi 5 running services 24/7 needs clean shutdown protection — a corrupted NVMe filesystem at 2 AM is nobody's idea of fun. Here are the realistic UPS options sized for single-board computers and mini PCs, grounded in what I actually run and what the specs say about units I haven't tested myself.
My Actual Build: What Needs Protecting
My server is a Raspberry Pi 5 Model B Rev 1.1 with 15 GiB RAM, running Debian 13 (trixie) on kernel 6.18.34+rpt-rpi-2712. The boot drive is a Fanxiang S501Q 512GB NVMe running over PCIe gen2 (the Pi 5 default). In my own benchmarks, this drive hits 453 MB/s sequential read and 438 MB/s sequential write, with 4K random read at 16,433 IOPS. SoC temperature sits at 49.4°C idle and actually dropped to 48.8°C after sustained load (likely the active cooler spinning up).
Total system draw measured at the USB-C PD adapter: roughly 6–8 W idle, spiking to around 12–15 W under heavy NVMe + CPU load. That's the power envelope a UPS needs to cover. A traditional 425 VA tower UPS is absurd overkill for this. A purpose-built battery board or compact standby UPS makes far more sense.
The Four Contenders
PiSugar 3 Plus Portable UPS
Based on published specs (I have not tested this unit): The PiSugar 3 Plus Portable UPS is a 5000 mAh battery HAT that attaches directly to the Pi's GPIO header and pogo pins. It provides 5V/3A output, which is technically below the Pi 5's recommended 5V/5A PD supply. Reported runtime for a Pi 5 under light load is roughly 4–6 hours, but the Pi 5's power demands may trigger undervoltage warnings during CPU bursts. The onboard RTC and software daemon can trigger a safe shutdown -h command when battery drops below a threshold — that's the real value here. At around $40, it's the most integrated solution, but the 5V/3A ceiling is a genuine concern for a Pi 5 running an NVMe drive. The S501Q in my build adds meaningful draw during writes at 438 MB/s sustained; I'd want to verify brownout behavior before trusting it in production.
Geekworm X728 UPS HAT
Based on published specs (not personally tested): The Geekworm X728 UPS HAT uses 18650 cells (typically 2x, user-supplied) and provides 5V output via GPIO plus a safe shutdown circuit. It was designed for Pi 4 and earlier models with lower power ceilings. The Pi 5 changed its power architecture significantly — the X728 does not support USB-C PD negotiation, and the 5V GPIO power-in path on the Pi 5 is not the recommended way to supply power. Geekworm reportedly has newer boards in development. As of now, I would not recommend the X728 for a Pi 5 build without confirming updated compatibility. For Pi 4 homelabs, it remains a solid and well-documented choice.
APC Back-UPS BE425M
Based on published specs (not personally tested): The APC Back-UPS BE425M is a 425 VA / 255 W standby UPS with six NEMA 5-15R outlets (four battery-backed). It's meant for desktop equipment. You'd plug your Pi 5's USB-C PD adapter into one of the battery-backed outlets. At 8–15 W system draw, the internal sealed lead-acid battery (reportedly ~3.6 Ah at 12V) should provide well over an hour of runtime — possibly 2+ hours at idle. The advantage: it's outlet-based, so it also covers your switch, router, or mini PC. The disadvantages: it's physically large for a Pi setup, uses a stepped-approximation sine wave on battery (which some PD adapters handle poorly), and it has no USB-C signal integration — you'd need apcupsd or NUT reading from the USB HID interface to trigger a Pi shutdown. I've seen reports of cheap GaN chargers browning out on simulated sine wave, so test your specific PD adapter.
CyberPower CP425SLG
Based on published specs (not personally tested): The CyberPower CP425SLG is functionally similar to the APC BE425M — a 425 VA / 255 W standby UPS with a simulated sine wave output. Same trade-offs apply. CyberPower's implementation reportedly works with NUT via USB HID. Physically it's a slim vertical tower, slightly more compact than the APC. Runtime at Pi-scale loads would be comparable. The choice between this and the APC often comes down to which vendor's monitoring software you prefer and local pricing.
How Safe Shutdown Actually Works
The UPS itself is only half the solution. You need software on the Pi that detects power loss and runs shutdown -h now before the battery dies.
- HAT-based UPS boards (PiSugar, Geekworm): Use GPIO pin interrupts or I²C communication. A lightweight daemon polls battery state and triggers shutdown at a configurable threshold.
- Traditional UPS (APC, CyberPower): Connect via USB-A data cable to the Pi. Run
apcupsd(APC) or NUT (Network UPS Tools, works with both). NUT'supsmonwatches for anOB LB(on battery, low battery) event and initiates shutdown.
For my Pi 5 running Debian trixie, NUT is in the standard repos: apt install nut. Configuration is straightforward but not zero-effort — you'll edit ups.conf, upsd.conf, and upsmon.conf. Budget 30 minutes.
What About USB-C PD Battery Banks?
A high-wattage USB-C PD power bank (45W+) can technically work as a pass-through UPS if it supports simultaneous charge and discharge. Many do, some don't, and the ones that do often have a brief ~200ms switchover gap during power loss — enough to reboot a Pi 5. This is not a reliable UPS strategy unless you've tested your specific bank and confirmed zero-gap passthrough. If you go this route, use a quality USB-C cable rated for the wattage; our 240W USB-C Fast-Charging & Data Cable – Braided, LED Indicator handles up to 240W and won't be the weak link.
Who Should NOT Do This
- If your Pi runs stateless containers with no persistent writes, a UPS is wasted money. The Pi boots in ~15 seconds; just let it restart.
- If you're protecting more than ~50W of gear (NAS, multiple mini PCs), skip these compact options entirely and get a proper 600+ VA line-interactive UPS with a pure sine wave output.
- If your power is deeply unreliable (multiple outages per week lasting hours), a battery UPS is a band-aid. You need a generator or to move critical workloads to a VPS like Hetzner Cloud or DigitalOcean.
Verdict
For a Pi 5 specifically: The PiSugar 3 Plus is the most elegant if its 5V/3A output proves stable under your workload — test before you trust. For a Pi 5 plus a switch or mini PC: The APC BE425M or CyberPower CP425SLG with NUT gives you outlet-level protection and hours of runtime at these tiny power draws. In all cases: The UPS hardware is the easy part; configuring NUT or apcupsd for automated graceful shutdown is the part that actually saves your filesystem.