this post was submitted on 19 Feb 2026
25 points (96.3% liked)

Selfhosted

56736 readers
490 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
25
Availability issues (self.selfhosted)
submitted 1 day ago* (last edited 1 day ago) by witx to c/selfhosted@lemmy.world
 

Hi there,

I'm hosting matrix for family use on a server at my place. The issue is my home is affected by internet and electricity outages - which we're trying to fix. This means that there are frequent downtimes on the chat. I have a UPS but usually is not enough to power everything - router and server - for longer periods of time.

The internet downtime is easy to fix as my router supports fallback connection which I point to a mobile internet solution.

I've thought about moving everything to a VPS but then I'm a bit wary of privacy regarding the data there. There's also the option of moving the server to a family member's house but I want this this be last resort because that makes maintenance harder.

Anyone dealt with this issues and found a solution? Perhaps a fallback mechanism that temporarily hosts the sever on a VPS? :D

all 18 comments
sorted by: hot top controversial new old
[–] glitching@lemmy.ml 2 points 18 hours ago* (last edited 18 hours ago)

not dealt with such a thing, but a decomissioned phone or laptop is the most obvious solution. they come with batteries, have seamless transition between power and battery, and you're reusing shit nobody wants no more.

laptops you can get cheap when they have like busted screens and any reasonably modern (like decade old) can operate in sub-5W territory; coupled with a good battery, that should provide you with tens of hours of battery powered use, and you can expand that, with powerbanks and such.

alternatively, a cheap phone that can run postmarketOS or mobian. even lower consumption and more options to extend power availability.

[–] spaghettiwestern@sh.itjust.works 2 points 22 hours ago* (last edited 21 hours ago) (1 children)

After having my server fail to recover after a power failure while I was out of town for an extended period, I moved all important server apps to an relatively inexpensive (<$200) laptop.

The battery is firmware limited to a 70% charge which means it will last for years with no significant safety concerns. Even at a partial charge, Debian indicates 7 hours of run time when the power fails (I've had none longer than 4), and it's unaffected by power blinks. It saves a bit of electricity too and costs $150 less per year to run than my old UPS alone.

It's been running for nearly 2 years without a hitch.

[–] Shimitar@downonthestreet.eu 1 points 14 hours ago (1 children)

Check periodically for bulging batteries, you might have to remove the back cover to detect such a condition depending on model.

I used to run a laptop as well but I have had batteries die like that twice, and that's a fire concern as well specially if you have it stored away in a closed and never physically check it.

Keeping charge at 70% doesn't help, you need to powercycle the battery regularly to prevent batteries to die on you

[–] spaghettiwestern@sh.itjust.works 1 points 12 hours ago* (last edited 10 hours ago) (1 children)

Your assumptions are no longer accurate.

For one thing Lithium-ion batteries are becoming common in consumer UPS models including those from Cyberpower, Eaton, and APC.

There is no memory effect and they don't need to be discharged and recharged regularly.

Similar to a mechanical device that wears out faster with heavy use, the depth of discharge (DoD) determines the cycle count of the battery. The smaller the discharge (low DoD), the longer the battery will last. If at all possible, avoid full discharges and charge the battery more often between uses. Partial discharge on Li-ion is fine. There is no memory and the battery does not need periodic full discharge cycles to prolong life. - https://www.batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries/

The risk of fire is extremely low. For a high quality charge limited lithium ion battery in a controlled environment it is about the same as a UPS with lead acid batteries.

Your chance of being struck by lightning in the course of a lifetime is about 1 in 13,000. Lithium-ion batteries have a failure rate that is less than one in a million. The failure rate of a quality Li-ion cell is better than 1 in 10 million. https://www.batteryuniversity.com/article/bu-304a-safety-concerns-with-li-ion/

Battery swelling (not caused by manufacturing defects) is primarily caused by overcharging, deep-discharge, physical damage, and heat, none of which are problems for my server installation.

The risk of fire from parking your car in your garage is hundreds of times higher than using a laptop as a server.

[–] Shimitar@downonthestreet.eu 2 points 9 hours ago

Ok, i stand corrected

[–] meldrik@lemmy.wtf 3 points 1 day ago

Get a power station with built-in UPS. I use an ALLPOWERS.

[–] frongt@lemmy.zip 10 points 1 day ago (1 children)

A generator that kicks on when the power goes out. A UPS isn't for extended runtime, it's the bridge the gap until the generator is running. (Or for graceful shutdown if there is no generator.)

[–] kylian0087@lemmy.dbzer0.com 3 points 1 day ago

Not necessarily. A bit of both I would say. My servers can run a few hours on the UPS but bellow a certain threshold it shuts my servers off safely. For most power outages that's enough to keep things running.

It may be simplest to move it to a hosted server. Depending on the length of outages, your comfort with electrical things, and your budget, you could get a bigger battery and use the inverter in the UPS (there are caveats-the inverter in the UPS is not rated for higher end of its load past the battery capacity it’s got and may burn itself out, and the charger may not work properly with the larger battery or with different chemistry), or get a battery/inverter box like a Ecoflow or that sort of thing. Solar may be a good bet too.

I don’t know about matrix but failing over between public IPs probably requires a HA sync of some type and also DNS failover.

[–] irmadlad@lemmy.world 2 points 1 day ago

Besides a Generac, like @frongt@lemmy.zip is talking about, UPS aren't for long term power supplies. I like my Generac whole house. We have ice storms in this area and I like the creature comforts that electricity brings with it. LOL Personally, I would host on a VPS. You might rummage around in Low End Box to find a suitable deal on which to host. Or host your chat server on something with low power draw like a NUC, but eventually, the UPS is going to drain.

[–] Decronym@lemmy.decronym.xyz 1 points 1 day ago* (last edited 10 hours ago)

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

Fewer Letters More Letters
IP Internet Protocol
NAT Network Address Translation
NUC Next Unit of Computing brand of Intel small computers
VPS Virtual Private Server (opposed to shared hosting)

4 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.

[Thread #105 for this comm, first seen 19th Feb 2026, 18:10] [FAQ] [Full list] [Contact] [Source code]

[–] HumbleBragger@piefed.social 1 points 1 day ago

Just a noob question about your setup: do you have a TLD domain name? Are you behind NAT? just because I wanna set a chat server like matrix or xmpp but I've been stuck in how to make it available on the web with these restrictions like no domain, no fixed IP and.behind NAT

host the important services on an low power pc like an pi. that should give you more time.

[–] bizdelnick@lemmy.ml 1 points 1 day ago (1 children)

In matrix, chats with e2e encryption are protected from hoster even if they would try to steal your data.