Wiki staff Frank’s personal wiki has a great post about how to build your own backup server for your Raspberry Pi.
As a geek, I always imagine worst-case scenarios. I was worried about my data I had at home. My laptop is backuped on my server, which hosts some other websites (this wiki), and family stuff (photos, mainly).
At first, I had an external hard drive that I would connect once every blue moon (I tried at least every two months), and I would then launch a bash script that would backup the server drives into the external HDD. That was great, but I needed two things:
The backups must be automated. As we say, if something is not automated, you’ll end up not doing it.
Some physical security; what if someone broke into my house ?
The first point was easy, but if I left the HDD plugged in, if someone broke into my server, they just had to
rm -rf /
to delete the backup; no good..
For the second point, sure, the server is screwed in the rack, but maybe that makes-it more valuable ? And what about floods, the house catching fire or EMPs (wink