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?

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    3
    ·
    18 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
      ·
      6 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
        3 hours 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
      ·
      9 hours ago

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

      • voyagertest@retrofed.comOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        6 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.