Hi y’all looking for advice here

I selfhost a nextcloud server and a NAS for backups, and one of my challenges has been data corruption after power failures.

I went and bought some consumer UPS units about 5 years ago, which helped, but now the batteries are starting to fail, and I’m not protected from power outages until I replace them.

I have the router on UPS as well so the computers can communicate with each other that the power has failed and it is time to gracefully shut down (using NUT).

However the router itself uses quite a bit of power and I am hoping to make a smarter decision this time around when getting a UPS.

The router’s power supply is 12V5A with a barrel style jack, so i have been searching for “DC UPS 12V 5A” to try and find something compatible that wastes less energy converting from battery DC to AC for the power supply to then convert back to DC.

But the only thing I’ve been able to find are these units designed to power electric doors: https://www.amazon.com/dp/B0D8VLPRN2/

I’m not sure if this would even be safe to use with a router, and i don’t know how i would wire it up to the router either.

I think i just don’t have enough knowledge to know how to shop for an appropriate DC UPS, or if such a thing even exists.

Anyone been in a similar situation?

  • SteveTech@aussie.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    26 minutes ago

    This probably isn’t too useful for you as they only have 24v and 54v models, but Ubiquiti used to make EdgePower UPSes. They have a http management interface that lets you monitor the power usage or power cycle the router if a ping stops responding, and etc. I installed one recently for a POE switch of mine.

  • TheBrones@feddit.nl
    link
    fedilink
    English
    arrow-up
    5
    ·
    7 hours ago

    I went the POE route, inject poe to the router and use a POE to DC jack extractor to power the router/modem. My Poe injector is behind my UPS so it will remain powered on.

  • kalpol@lemmy.ca
    link
    fedilink
    English
    arrow-up
    1
    ·
    6 hours ago

    Just replace the batteries in the ups. They are almost always standard lead acid batteries. Take a pic of the wiring, swap them out, and you’re good.

    • voyagertest@retrofed.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      I can do this, just trying to optimize away some unnecessary power losses to get longer lifetime out of the batteries.

  • Decronym@lemmy.decronym.xyzB
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    17 minutes ago

    Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I’ve seen in this thread:

    Fewer Letters More Letters
    PSU Power Supply Unit
    PoE Power over Ethernet
    SATA Serial AT Attachment interface for mass storage
    SBC Single-Board Computer
    ZFS Solaris/Linux filesystem focusing on data integrity

    5 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

    [Thread #112 for this comm, first seen 25th Sep 2026, 15:20] [FAQ] [Full list] [Contact] [Source code]

  • HamsterRage@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    12 hours ago

    Something about this doesn’t seem right. An ordinary router shouldn’t be the power hungry device that breaks your UPS setup. I have 3 Lenovo M910Qs, an HP T640, a switch, an external USB SATA drive housing, and two MODEM/routers hooked up to a cheap Cyberpower UPS and it tells me I’m drawing about 100W and should run for over an hour.

    • voyagertest@retrofed.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      I’m pretty sure that the UPS failed because the battery was 5 years old. The manual specifies needing to replace the battery every 3-5 years.

      I double checked the router and the power supply (which is medium-big size) says 12V 5A, which comes out to 60 W

  • pHr34kY@lemmy.world
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    12 hours ago

    I did this once with a router. I just bought a 12V SLA battery (a UPS battery) and a car float charger (sometimes called a “battery maintainer”). The charger was always connected to the battery, so it was pumping about 13V into the router. The router could withstand it. It’s easy enough to get a voltage regulator if it’s an issue, but most hardware already does it to an extent. It was DC all the way.

    If I want 5V, I get a car USB charger and stick it inline.

  • Zwuzelmaus@feddit.org
    link
    fedilink
    English
    arrow-up
    21
    ·
    19 hours ago

    The common solution is not to replace the UPS but only the battery inside. They are standard sizes and for a cheap UPS probably around 10 - 20 bucks.

    • BCsven@lemmy.ca
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 hours ago

      This. My ups died after 10 years powering router and network. A replacement was $300 (for similar model) but the batteries were only $80. Just had to untape the pack and plastic adapter and transfer it over to the new battery set

    • mbirth 🇬🇧@lemmy.ml
      link
      fedilink
      English
      arrow-up
      7
      ·
      11 hours ago

      THIS! Normally, the battery should be accessible via some door or a few screws. Replace the battery for a few bucks and you’ll have 5 more years of peace.

  • poVoq@slrpnk.net
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    5 hours ago

    While there is DC AC power the battery in a UPS isn’t used. It’s not a constant AC-DC-AC conversion, that conversion only happens when there is a power outage.

    The problem is that lead-acid batteries are a really shitty technology with high self discharge rates and short overall life span (their only advantage is high burst capacity that’s good for starting motors).

    I would look for 12V LiFePO4 batteries in a standard lead-acid form factor that are meant as drop in replacements. Those are somewhat more expensive (like 2-3x the price) but will likely last a quarter century or more.

    I am currently using an interim solution where my solar inverter has an seperate emergeny power outlet that works even when power is cut. Sadly it doesn’t switch to battery fast enough (like half a second delay 😓) for it to work as a UPS directly. But in combination with some old regular UPS that have spend batteries that only last a few minutes it works ok. But yeah, not the most efficient option conversion wise, but solar power is free 🤷

    • Blue_Morpho@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 hours ago

      I did that and it works well. The only problem is that when the battery goes to 0 on a long outage, the UPS can’t recharge it. I had to pull the battery, charge it with a lifepo4 charger, then reinstall.

      Short outages are fine.

      • poVoq@slrpnk.net
        link
        fedilink
        English
        arrow-up
        3
        ·
        10 hours ago

        Probably best to use NUT to shut down the servers gracefully if the power outage is too long.

  • deadbeef79000@lemmy.nz
    link
    fedilink
    English
    arrow-up
    12
    ·
    20 hours ago

    That rating from that PSU will be the max it can supply, it is very unlikely that a consumer router is pulling 5A.

    Your router firmware might even expose its power consumption if you are lucky.

    I have the same/similar setup. My wall-warts are just plugged into the UPS.

    • Onomatopoeia@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      3
      ·
      9 hours ago

      Yea, small business routers (think old Cisco boxes) use a 5A laptop-style power supply. I suspect this is what OP’s using, as I’ve never seen a consumer model with such power specs. Consumer stuff is built around the cheapest hardware they can get away with.

      Thing is, I don’t doubt the Cisco box (or similar business units) may need that much juice at times. Put your hand over one that’s not connected but powered on and they get hot.

      Stuff like that they really don’t care about power consumption during design, just capability.

    • iocase@lemmy.zip
      link
      fedilink
      English
      arrow-up
      5
      ·
      19 hours ago

      I was just thinking the same thing. I was also thinking you can get a wide input voltage buck converter on amazon for cheap and use a bunch of cells in series as the UPS and the buck converter spits out 12V until it cant anymore. Then just wire up a charge controller to charge and balance your lead acid cells.

  • B0rax@feddit.org
    link
    fedilink
    English
    arrow-up
    5
    ·
    18 hours ago

    Search for “router UPS”

    For example there is one from APC “# APC Back-UPS Connect 12V DC 36W - CP12036LI”

    • voyagertest@retrofed.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      I would love to know how you found that one, so I can look one that supports 60 W (12 V 5A). If i search that model directly, i can find it on APC’s website, but no combination of search terms brings it up otherwise, not router ups, not laptop ups… All I’m getting are the standard ups models with 120 VAC outlets.

      • B0rax@feddit.org
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 hours ago

        For me that was literally the first unsponsored Amazon find for the term “router UPS”

    • mbirth 🇬🇧@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      If you search for “12V ups” there are several. However, most only go up to 2 Amps. Not sure what kind of monster router actually needs 5 Amps, though. Also, I believe those 12V UPSes don’t provide status information via USB. So, there’s no way to know when the battery backup is going to fail.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    3
    ·
    17 hours ago

    I mean, there are 12V native battery systems out there, stuff like vehicle systems.

    Assuming that the 12V power supply on the router is permissive enough to take a certain amount of variation, I imagine that you can probably just put a 12V deep-cycle battery on the thing on the thing and directly hook up a 12V charge controller in parallel.

    I dunno whether there’s some sort of voltmeter that you can connect NUT up to.

    Personally, my position is that if NextCloud or whatever can’t handle power loss without corrupting data, that’s a bug with NextCloud. I mean, sure, it might not be able to complete an operation if there’s power loss while it’s running, but that shouldn’t result in corrupt data.

    • voyagertest@retrofed.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      How would you wire the barrel style adapter directly to the battery, and charge it at the same time?

      • tal@lemmy.today
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 hour ago

        Same way existing systems work. The charger just moves the voltage somewhat up above 12V. Under normal use, the battery drops slightly below 12V. You have the things that draw on the battery wired in parallel with the charger. That’s why I’m saying that the power supply on the device would need to be tolerant enough to handle a bit of a range.

        An inverter’s power supply will be able to handle that range, but you’re saying that you don’t want the overhead from that. A DC power supply that’s tolerant of that range will also work.

        EDIT: There are also gonna be 12V regulated DC input power supplies that you could externally insert.

        searches

        https://www.amazon.com/Stabilizer-DROK-Waterproof-Transformer-Television/dp/B081RG8XP5

        DROK DC-DC converter input voltage range is DC 9~36V (12V); output voltage is DC 12V; output current is 5A; output power is 60W.

        Conversion Efficiency: >90%

        Would have to compare to the existing efficiency of your inverter and AC-to-DC power supply.

    • BCsven@lemmy.ca
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      What’s the underlying filesystem on a nextcloud server? ZFS? Or something else.

      • voyagertest@retrofed.comOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        You can install nextcloud on any file system afaik. Mine is btrfs. But yes, I’ve had unrecoverable database corruption with power failure. It uses mariadb for the database.

  • SuspiciousCarrot78@aussie.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    16 hours ago

    Aha! Yes.

    Dunno how much juice you need, but I am installing one of these, tied into solar and a smart power switch:

    https://au.ecoflow.com/products/ecoflow-river-3-max-plus-portable-power-station

    Part of the reason I chose it is exactly what you are talking about. It has a direct DC output, so you can avoid the battery DC --> AC --> router power supply --> DC conversion chain. I have a bunch of DC capable gear (Raspberry Pi, router etc) and I’d rather not incur the losses in conversion.

    FWIW, the car-style DC outlet supplies 12.6 V at up to 10 A, or 126 W. So it has more than enough current capacity for a 12 V 5 A router. (It also has USB power, if that’s an option for you).

    You’d still need to check whether your router is happy with 12.6 V rather than exactly 12 V though. You’d also need the correct barrel size and polarity.

    On the plus side, It gives you 858 Wh of storage (depending on which model you do with), a <10 ms UPS transfer time, and enough AC output to keep quite a bit of your other electronic junk alive during a blackout or brownout.

    In any case, please enjoy the delicious overkill. I’ve seen the River 3 plus + extra battery on sale for as low as A$599 / 420 USD. And yes, they can be charged by normal wall socket (and also yes, the DO pass-thru as well)

    https://www.ecoflow.com/au/river-3-series-portable-power-station

    • voyagertest@retrofed.comOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 hours ago

      Thank you, I think this is basically what I’m lookong for. I’ll just need to find an adapter from car outlet to the correct barrel adaptor.

      EDIT the only thing that would improve it is a user-serviceable battery.

      • SuspiciousCarrot78@aussie.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        5 hours ago

        Ha ha! The external battery is user serviceable / replaceable :)

        Welcome to the new disease: “can I run my home-lab entirely off grid”

        • voyagertest@retrofed.comOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          5 hours ago

          It looks to me like you have to replace the whole $600 unit in 10 years rather than swapping out just the battery. I’d rather not generate that ewaste.

          • SuspiciousCarrot78@aussie.zone
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            4 hours ago

            No, the battery swaps out (or at least the external one) - it’s attached by clips and pogo pins. Hell, you can deconstruct the battery and replace the cells yourself, if you’re technically inclined and know what you’re doing.

            You’ll have to contact them directly, but I’ve have heard that they can service or replace the internal one too, rather than replacing the whole unit.

            You don’t have to ditch the whole unit - what a waste that would be.

            Contact them; they’re pretty responsive.

            support.au@ecoflow.com

    • CorrectAlias@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      5
      ·
      14 hours ago

      If you’re going this route, you may want to pay attention to the switchover time. For most consumer hardware, it can handle 10-20ms of switchover time. However, enterprise grade stuff is more sensitive to power fluctuations and sometimes needs near instantaneous switchover. It can get very expensive if you want LiFePo4 (like many of these portable stations) while also being “on line” (meaning instant switchover).

      There are middle ground options which have switchover timing of 5-8ms that are also LiFePo4. LiFePo4 is great because the chemistry doesn’t have a huge fire risk and it can do more cycles than a lead acid battery.

      Anyway, my bad for rambling.

  • 0^2@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    4
    ·
    20 hours ago

    Yes which is why i started building a custom 20 usbc 65w max per port box and was going to swap out all barrel pluga for matching voltage usbc receiver plugs but havent finished it yet. Not sure about battery or if i was going to add one to it

  • Rhaedas@fedia.io
    link
    fedilink
    arrow-up
    2
    ·
    20 hours ago

    How much loss is there for a converter? I always thought that for the most part they were pretty efficient. Unless you’ve measured and found a difference, you might be trying to solve an issue that isn’t a huge one.

    I’ve been very happy with my Cyberpower setup, and the smaller one is powering my router and monitors. It’s still 650VA, so will roughly match the time the larger one would keep my computer alive. I’m not running a server though, so it might still be low for you, but 12V 5A doesn’t seem like a large pull.