[Raspberry Pi] What is your use case for your RaspPi

My advice is to:

  1. Use an “Endurance” microSD card:
  1. Take the server offline once in a while and back up the MicroSD card on another machine with a command like:

time zstd -v --threads=4 < /dev/sdX > /home/youruser/imgs/MicroSD_Card_img.zst

…and restore with:

time zstdcat -v /home/youruser/imgs/MicroSD_Card_img.zst > /dev/sdX

As to redundancy (which is a level of “hardcoreness” I don’t feel like touching, at present, as I don’t need to have my hair turn white prematurely), I think some system which uses a database such as MariaDB or MongoDB should be used, which is capable of doing the replicating for you. The redundancy is not some afterthought. Witness how Docker Swarm never really took off; it’s more of an “afterthought” sort of approach to redundancy.

PS: I backed up my Mattermost install yesterday with a command just like the above. It crushed down to about 1.5GB. That includes Raspbian (Debian Buster 10), plus a fully functional Mattermost install, with Wireguard, not SSL, to allow secure, remote, firewall-punching connections).

4 Likes