Syncthing Backup w Raspberry Pi
from starshadow@lemmy.blahaj.zone to selfhosted@lemmy.world on 06 Feb 23:19
https://lemmy.blahaj.zone/post/38227898

So I’m quite new to the self hosting world, and not the most tech savvy, but I’m looking for a way to expand and increase the reliability of my file storage. I used to just use cloud storage but got concerned about privacy and environmental impact and whittled down all of my data to about 200GB including all my music, photos, movies, backup files, etc. I have a laptop, phone, and mp3 player and currently use synching to sync all of my files across all three devices. This works great, I love how seamless, cheap, and automatic everything is. But I want to expand my storage abilities and include a backup that isn’t with me / in my apartment. I was thinking of getting a couple raspberry pis with m.2 ssds, one to leave at my sisters house (small and unobtrusive little plastic box connected to power and her wifi) and then one at my apartment to act as another node, freeing up space on my phone so that all my files are in at least 3 different devices (3:2:1 rule?). this feels like an fairly easy project to set up, but I have a feeling there is probably a better way to go about what I’m trying to achieve.

#selfhosted

threaded - newest

themachine@lemmy.world on 07 Feb 00:32 next collapse

That sounds fine. I would only say don’t use Syncthing to actually make your backups. My preference and recommendation is restic, possibly combined with the helper utility autorestic.

rune@infosec.pub on 07 Feb 00:54 next collapse

Don’t confuse backups with syncing. Although syncthing has a recycle bin to recover deleted and overwritten files, you shouldn’t rely on it for guarding against accidental deletion, file corruption, or ransomware. You want something that will allow you to restore files from a point in time. There’s lots of proper backup tools for this. Borg, Restic, etc. Each has pros and cons. Make sure you test recovery. Also 3-2-1 is 3 copies of data, on at least 2 different systems, and 1 off site.

frongt@lemmy.zip on 07 Feb 01:55 next collapse

*2 different types of media. But having an offsite copy is more important; this part of the rule is mostly just about avoiding failures due to stuff hard drives in the same batch failing at the same time. Or a tape drive that has gone bad and destroys tapes when you insert them, because if that’s the only format you have you’re SOL. If you have another copy on CD then you can use those.

suigenerix@lemmy.world on 07 Feb 21:54 collapse

Syncthing has multiple file versioning strategies.

docs.syncthing.net/users/versioning.html

So it can provide quite solid protection beyond a trash can, but yes, it’s still primarily a syncing tool.

just_another_person@lemmy.world on 07 Feb 01:29 next collapse

If you’re going for reliability, and you just want things to be simple, you probably just want to spend the money on two cheap NAS boxes, honestly. There are some caveats that come with RPi’s, and you’re unfamiliar it’s: 1) going to cost about the same, 2) be simpler to manage and upgrade, and 3) be easier to repair disk columes when the time comes.

Even if you’re just looking to make these redundant to each other, just make it simple and easy.

Onomatopoeia@lemmy.cafe on 07 Feb 15:30 collapse

Someone down-voted but I agree, and this from actual experience doing stuff similar to OP.

Flexibility, compatibility, and power consumption are significant considerations for a self-hoster.

I’ve run ST with Pi, and while Pi is great, it’s non-standard so doesn’t have the benefit (yet) of ubiquity. While it’s low power consumption is fantastic, mini PC’s and even SFF (Small-Form-Factor) desktops are in the same range for similar costs (in the used market) while providing orders of magnitude more performance per watt and much more hardware compatibility.

A Pi 5 today is in the $120 range - for a device that on it’s own will idle at about 4 watts, with peak draw at 15w. This without any storage yet, and no case.

A mini PC will idle about the same - but can house a large, standard drive so be a much better package for OP’s intended use-case, and cost less on the used market.

I’d maybe add an online backup for the device you’ve chosen to be the authoritative data source to achieve close to a 3-2-1.

just_another_person@lemmy.world on 07 Feb 16:00 collapse

The downvotes here are from people who have no idea what in the world actually works best, and just FEEL a certain way about things 🤣

Kinda the mantra of this entire sublem.

I’m honestly not even talking about a Minipc. I’m talking a cheap ass dual bay NAS. Let’s do a price breakdown:

  • RPi5/8GB: $135
  • m.2 dual hat +case with active cooling: $75 (saves a bit)
  • 2x 512GB OR 1TB: $200 / $300
  • 45W Power supply: $50

So at the bare minimum that’s going to be $460 or $510 for the 1TB variant per device. Then you need to fuck with all the software side of things as well.

  • Synology DS223j 2xbay: $200
  • 2x 4TB HDD: $200

$400 and you’re done. All the software is ready to go, you’ll have automatic rebuilds of your array if you need to swap drives, and a simple interface to work with everything in.

I’m not even here simping for Synology, because QNAP and others have similarly priced solutions. I’m here pushing for SIMPLICITY and cost effective solutions.

BCsven@lemmy.ca on 07 Feb 16:39 collapse

As a counter point you can grab an old Pi for cheap and install OpenMediaVault OS and have all the NAS tools you need managed from a GUI.

There are Plugins for tons of self hosting options, and GUI docker management for your own add ons. (New versions dumped portainer, in favor of their own GUI tools).

Pi3 is fine Pi4 would be better. Wattage is between 4-7

I used to host this way till I found a fanless heatsink case for a ITX board.
Idle wattage is 15, and 23 for processing heavier tasks

just_another_person@lemmy.world on 07 Feb 18:12 collapse

You’re going out of your way to prove some unnecessary point with this solution though.

Only the RPi5 has PCIe, first of all, and the older boards would need a slow USB interface for any type of larger storage. Then you have longevity and reliability questions because of the age of the boards…it’s just worth it.

OP wants a simple solution. RPi of any kind just ain’t it when you get down a simple list of Pros v Cons list.

fizzle@quokk.au on 07 Feb 04:37 next collapse

As others have said, sync isn’t backup - if you inadvertently delete something then it will get deleted everywhere.

I’ve been using borgmatic (config interface for borg) for many years.

A long while ago I switched to catch and release for media. Curating a large collection just took too much effort, and backing it up was too impractical. Like you probably have 200gb of movies, 20gb of photos, and 20mb of personal documents. These categories have different risk profiles - for me an offsite air gapped backup of movies would be excessive, but personal documents absolutely isn’t. It’s just an important consideration when designing a backup system.

That said, 200gb isn’t that much, and restic / borg will de-duplicate your archives anyway. Just something to keep in mind.

A low powered PC in someone else’s apartment satisfies the second location requirement. Will DNS be a problem?

An alternative is to get 2x external drives. Keep one in your house and update it whenever, then take it to your sister’s whenever you visit and swap it with the one left there.

Onomatopoeia@lemmy.cafe on 07 Feb 15:55 collapse

I agree with everything except the offsite, offline, external drive.

In my experience, cold drives fail more often than live drives, and you get no warning when this happens.

Drives weren’t engineered to be offline but to be powered on continuously. Things like lubricants in the spindle, but especially the read heads pivot were designed around this. How anybody us have heard the click of death - that’s the read head having issues moving.

Plus external drives have heat dissipation problems. They’re good for short, intermittent reads, but when initially copying data to them they can get quite hot. I regularly recover and rebuild drives for family and friends and have registered these things at 120° F+, so I keep an old case fan on them during recovery.

fizzle@quokk.au on 07 Feb 21:46 collapse

Hmm. An interesting point and a good consideration - maybe a reason not to make this recommendation to others. In my own case I’m not concerned.

I’m using 1tb SSDs. They’re pretty cheap now. I don’t think they suffer from any of the problems you’ve described?

I couldn’t find any information about longevity offline vs online. In daily use SSDs do seem to be more reliable than HDDs, particularly as they get older.

The other thing is my strategy is something like 4-3-2, so the offline is an additional final hail mary. The chances that I would require it and it would have failed in the month or so since I updated it are infinitessimal.

Finally there are practical considerations. My offline copy resides in a physical safe in our house, and is unencrypted. If I were to die suddenly, this would be the most accessible copy of important documents, family photos, et cetera.

It’s not a perfect system but it’s “pretty good” and I’m hoping I don’t die suddenly so there’s that LOL.

Decronym@lemmy.decronym.xyz on 07 Feb 04:40 next collapse

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
PCIe Peripheral Component Interconnect Express
RPi Raspberry Pi brand of SBC
SBC Single-Board Computer
SSD Solid State Drive mass storage

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

[Thread #68 for this comm, first seen 7th Feb 2026, 04:40] [FAQ] [Full list] [Contact] [Source code]

Onomatopoeia@lemmy.cafe on 07 Feb 15:35 next collapse

My current backup approach uses Syncthing, but only to replicate all data to a single point, which is then backed up properly.

All mobile devices sync to home, that box is the authoritative data source for everything: mobile devices, user data, media files, etc.

It replicates to two other local data stores (this for quick recovery should a drive/device fail) and is backed up to a cloud service (should I have a catastrophic event).

Its not a perfect 3-2-1 setup, but addresses my risks well enough.

passenger@sopuli.xyz on 07 Feb 18:28 collapse

Duplicati or Borg for backups. Guis exist for borg as well.