I live in a part of the world where powercuts are pretty frequent. 1 per day is normal. They last between 1 and 8 hours. A day without powercuts feels like a special occasion.

My machine is powered by a desktop ups which is terrible. It is only supposed to power everything for a few minutes to shutdown safely. But it is cheap and I don’t know much about other affordable alternatives.

How do you folks who self host at home deal with powercuts? Any recommendations? 8 hours of uptime from a ups sounds almost impossible or totally unaffordable to me.

  • Appoxo@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    1
    ·
    edit-2
    1 year ago

    Germany.

    I don’t. Can’t remember a power outage ever except for shorting our connection box :)

    Besides that only some internet outages of our ISP but that is also very rare today.

    Edit: At work we sell 750VAh to our customers which are usually very small in demand and workload

    • neeeeDanke@feddit.de
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      for real, my homeserver in my appartment had an uptime of 450ish days before I had to power it down, because I wanted to plug in a power meter in front of it (don’t have anything fancy with redundant psus or something like that…).

    • Im1Random@lemm.ee
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      11 months ago

      Another German here and yeah I also only had a single power outage (around 1h) in the last 5 or 6 years. Couldn’t even imagine having no power once every day or even every week.

  • Dandroid@dandroid.app
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 year ago

    I have solar panels and a backup battery for the whole house. I live in a rural area that is currently under heavy construction, as they are trying to make this area into a small city, so power outages are unfortunately extremely common.

  • Curious Canid@lemmy.ca
    link
    fedilink
    English
    arrow-up
    13
    ·
    edit-2
    1 year ago

    I have a small UPS to keep my fiber and router working for a while and I have a larger UPS for my server. Even the larger UPS will only keep the server going for maybe half-an-hour, but most outages here are short. For me, the most important benefit is that my UPS will tell my server to shutdown when it begins to get short of power. Graceful shutdowns remove the risk of corruption and data loss.

  • rambos@lemm.ee
    link
    fedilink
    English
    arrow-up
    11
    ·
    1 year ago

    Where are you from my friend? Why do you actually need server running if you have no electricity at home? Your internet is also down right? Dont you need to just find how to shutdown safely when outage happens? Or do you have mobile/sattelite internet as a backup?

    I use candles btw 🕯️

    • shnizmuffin@lemmy.inbutts.lol
      link
      fedilink
      English
      arrow-up
      6
      ·
      1 year ago

      Not OP but my fiber optic Internet is not on the same power grid as the rest of my house. I’ve got a battery backup on my routers and modem for exactly this reason. I’ve got a UPS to handle a power outage into automatic graceful shutdown at 33% remaining.

      • lustrum@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        3
        ·
        1 year ago

        Same deal here.

        Can keep my WiFi up and running for hours in a power outage, even when cell signal has dropped out. Server on a separate UPS shuts down at about 40%.

    • vegetaaaaaaa@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Any journaled filesystem is mostly fine (e.g. good old ext4).

      Same as you, if power goes down for a long time I have bigger problems than not being able to access my home server. Guess I could still hook it up to my car battery and DC->AC converter if I really wanted to, and use my phone as 4G modem/backup internet access.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Ext4 can get corrupted in some cases. Its very rare but there is no way of knowing since ext4 doesn’t have file checksums.

  • circuscritic@lemmy.ca
    link
    fedilink
    English
    arrow-up
    6
    ·
    edit-2
    1 year ago

    Can you migrate, or setup failovers, to a low powered ARM device? Or one the new Intel N series e.g. N100 low power devices?

    If not, you’re going to need to buy/build a fairly large battery bank.

    • stafeel@lemmy.ml
      cake
      OP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Yeah, been looking into Pi’s and its alternatives. But with the external drives I think I’ll need a big powerbank or I’ve to DIY a ups

        • stafeel@lemmy.ml
          cake
          OP
          link
          fedilink
          English
          arrow-up
          4
          ·
          1 year ago

          Not a lot of critical services but I would absolutely need things like pihole.

          Just realized, I can host the critical ones on the ARM device and the services which I can do without for some time can stay on the current server.

  • Faceman🇦🇺@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    5
    ·
    1 year ago

    I have 2 UPS’s, a small one that runs the fibre gear and keeps the connection alive and the main one in the rack that keeps the main server running for a couple of hours.

    I’ve only ever had 1 power outage in the last 5 years though and it was scheduled electrical work. couple of brownouts during storms that were just barely deep enough to kick in the UPS boost for a minute but nothing major. nothing else is critical enough to worry about it in my case.

    but if I were in a place where power is patchy, I’d have enough solar+battery for the whole house to last a normal day/night cycle, then a UPS for the rack, then a generator as a last resort only.

    • Carlos Solís@communities.azkware.net
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      My setup is similar, but what I have is one UPS for the things that shouldn’t go down in case of power outage (the modem and server) and another for everything else in my room that can go down for a while without much loss (the computer, consoles, screen, etcetera)

  • Chup@feddit.de
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    Data centres, business, hospitals etc. run batteries to bridge the gap until the diesel starts running. It can take a minute or a few until the diesel generator takes over, but it can run for hours and days with refuelling.

    Getting batteries for 8h is expensive and risky - what if the power cut suddenly lasts 9h? With batteries you have a fixed storage, with petrol or diesel you can just refuel.

    Having that unreliable electricity, my home server would be the least of my problems. I would already have a generator to keep the fridge running so the food doesn’t go bad every other day.

    • Cole@midwest.social
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Depending on your budget and location, a whole house backup generator can be relatively inexpensive. My family lives in a very rural area in the central US, so we have a backup whole house generator that runs on propane. I chose propane because those motors seem to have less maintenance, plus we have propane for the grill, etc, already on site.

    • stafeel@lemmy.ml
      cake
      OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I should probably clarify that the 8 hour ones are infrequent. Once in a month or two. But those are the days that are really annoying. The regular ones are like two hours a day or an hour at 3 different times in a day. All the other appliances are manageable but I have to shutdown my server every time.

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

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

    Fewer Letters More Letters
    DNS Domain Name Service/System
    NAS Network-Attached Storage
    NUC Next Unit of Computing brand of Intel small computers
    PSU Power Supply Unit
    PiHole Network-wide ad-blocker (DNS sinkhole)
    RPi Raspberry Pi brand of SBC
    SATA Serial AT Attachment interface for mass storage
    SBC Single-Board Computer
    SSD Solid State Drive mass storage

    [Thread #132 for this sub, first seen 11th Sep 2023, 19:25] [FAQ] [Full list] [Contact] [Source code]

  • hexdream@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Are you in South Africa? Personally I migrated to Intel NUCs and run virtualization with them. Power wise I have an Inverter and a solar panel as a backup. Inverter handles all the heavy lifting and switching. This system is purely for my electronics. So laptop, servers etc. There is no “cheap” way to do it, but if you do it in stages it can be affordable. If you can, try not to cheap out on the batteries and Inverter. Lead acid based batteries are OK IF you take care of them. Don’t use the cheapest Inverter. It’s not worth the risk of damage.

    • stafeel@lemmy.ml
      cake
      OP
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I agree. Its never worth the risk.

      I think I’ll start with inverter + battery. Then add batteries in the future depending on my power needs.

      • oats@110010.win
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        If going for an inverter try a sin wave one if it’s in your budget.

  • johntash@eviltoast.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Most desktop ups are more meant to give you time for the machine to shut down (hopefully automatically) vs actually running them for n extended period of time.

    Do you have anything that would still be using the server when the power is out?

    It’s not really answering your question, but are solar panels or a backup generator possible in your area? A long power outage like that everyday would be really annoying

  • Doubletwist@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    11 months ago

    UPSes aren’t meant to keep things running for long periods of time.

    If you’re trying to keep things on for hours, you need a generator. Then the UPS just needs to keep things running until the generator comes online.

    I suspect it’ll be a lot cheaper to get a small generator than it would be to buy enough UPS and batteries to run things for multiple hours.

    • Scrubbles@poptalk.scrubbles.tech
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      1 year ago

      I’m against fossil fuel solutions, a UPS is good if you have daily shorter outages. A quality server-grade UPS is pricey, but can last you much longer.

      The best solution, and this is an investment, but would be solar. Tbh if you have power outages that often and you own your place, then I would be seriously looking into solar+wall battery. It would fail over automatically.

      We know nothing about your location/usage OP so it’s hard to make recommendations. But if it were me and my equipment in your scenario, I’d go full solar.