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 😉 ) ?
The first thought would be to assemble a simple computer, put an HDD inside it, an ask a friend to host it for me. But that’s a bit dumb: for a backup box, you don’t need very much “responsiveness” nor computing power: I don’t want to waste energy for nothing.
So then I thought about using a Raspberry Pi: they’re cheap, low power and noise-free. The final idea was to use an old 1U-rack case I had lying around: it’ll be nicer, sturdier and “geekier” 😉
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!