Ghost Pi - an unconventional backup solution
lemmy.world
I call this nonsense host ‘Ghost’, for me it’s similar to a tape backup solution. Fairly simple concept, it’s an old Pi1 + external mechanical drive that sits dormant with its ethernet off. Once a month, at a random time and random date it enables the ethernet, spins up the drive and pulls data from the main server to update its drive then goes black until next month. The only way to check or maintain the pi is a push button that toggles the ethernet interface. I slapped it together with some scrap wood, spare hardware and screwed it to a 2x4 in a dark corner of my basement. It’s my 5th string backup, the ultimate insurance policy because I’m mental.
Sorry, I forgot to post the scripts. I'm a meathead electrical engineer so I don't use GIT or anything so here is the code dump. To summarize the setup's software:
The backup script is fairly boring, just runs rsync and pushes the rsync log files back to the primary server. If it fails it sends me an email before turning the ethernet back off and going black.
#So here is my python code that runs the button press:
#bash script that toggles the ethernet - if its on, it turns it off. if its off, it turns it on:
I very much feel the desire to stay away from Git repos for singular scripts like this. Maybe consider making it a gist though. Easier to keep track of by starring it in GitHub and perhaps even iterate on it in the future. :)
I use Joplin notes to track my code revisions. It's incredibly crude but it works and keeps my documention private and is also my wiki for each server so I know what the heck I setup and did.
Does anyone see the attatched mp4 video? If not here is an imgur link.
We can see the video. Like the idea! I personally use a pi that I plug in manually as a backup solution. Do you have a git with the scripts you used for this pi?
Hmm I’m using wefwef and can’t see it
But you are seeing that there should be a video right? Same for me. 🤔
Yeah black background with a play button that has a diagonal line through it, as if it’s a broken link or something
Thanks for posting this! Really interesting idea! Don't forget to give us the good stuff - the details on how to implement this :-)
That's a cool idea for an automated offline backup. My equivalent is an external hard drive connected to a mechanical timer plug. Every day it turns on for 30 minutes, that triggers a script that mounts the drive, syncs my files, then unmounts the drive. Then the plug turns off the drive until tomorrow.
I like this better though. I've got an old pi1 somewhere, might have to try it.
This was my first idea but I got uneasy about an external device hard disconnecting. I was worried about data loss and corruption so I settled on just turning Ethernet on and off.
Thanks for posting this! Really interesting idea! Don't forget to give us the good stuff - the details on how to implement this :-)
Have you posted about this previously (outside of Lemmy)? I swear I have seen this, or something else implementing a similar concept, before.
Yep! In Reddit about a year ago.
Well, good to see you (and this post) have made it to this corner of the internet.
Thanks for posting this! Really interesting idea! Don't forget to give us the good stuff - the details on how to implement this :-)
Thanks for posting this! Really interesting idea! Don't forget to give us the good stuff - the details on how to implement this :-)