Hacker News new | ask | show | jobs
by divyenduz 1900 days ago
Doing something very similar, hosting a lot of things on a Raspberry Pi 4 with 400 GB SD card.

Dockerizing most things https://github.com/divyenduz/dev-infrastructure

Not as easy though, I still need to figure backup strategy and everything. My goal is to eventually remove photos, and almost everything hosted entirely really.

2 comments

What kind of SD card are you using? How many writes/transfer speed? The fact that the card can die on you and lose 400 GB of data gives me nightmares.

I got a Rock Pi recently and it supports M.2 slot and eMMC that goes up to 64 GB, this makes me less nervous.

I have a simple script that tars and gpg encrypts specific directories nightly. It’ll also reap backups in a sane way (only keep one per week for the last month, one per month for the last year, etc). And it’ll stop/start services/containers while backing up as needed. Then I distribute the backups to various devices using Syncthing.

I’ve been thinking about also having an off-site backup (for a house fire, electrical storm when everything is plugged in, etc), but that might be slightly paranoid.