-- Leo's gemini proxy

-- Connecting to figbert.com:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini;lang=en-US

An Update on Bad Backups and Internet Celebrity


My recent post on the Great Alpine Migration Tragedy of 2021 garnered some serious attention! I got a number of emails, a whole host of feedback on Lobste.rs, and over 100 points on Hacker News! As I understand it, that means I'm now a top internet celebrity (and eligible for the 10 KB Club).


Still, I must remain humble even as I catapult toward digital infamy and thus I am here to respond to feedback, answer questions, and talk about what I've done to prevent something like this from happening again.


Before we begin, for those who haven't already, read the story of the Great Alpine Migration Tragedy:

over Gemini

on Lobste.rs

on Hacker News


Useful Tips from Strangers


Ctrl-C is Not a Debugging Tool


That's a good point: I've been advised to update my methods. Several folks pointed me towards strace. Sending the SIGUSR1 or SIGINFO signal to Tarsnap would also work. The -v flag could have been helpful as well.


Also see: What problems do people solve with strace?


Don't Wipe Prematurely


A number of folks were confused as to why I didn't keep the old machine around during the transition. Others detailed their own migration strategies. In general, it seems that folks agree you should keep around your old machine until you're totally certain everything is up and running in your new setup.


As I mention briefly in the article, I've actually done this in the past myself! This time, however, there was no second server. Everything was done in-place. I cannot change this, as it occurred in the past. In the future I will avoid this kind of migration.


A Restore System


A number of people took issue with my take-aways from the experience. See:


> Trying to address a lack of confidence by increasing the backup

> frequency doesn't make sense. The backup frequency is the most trivial

> thing to adjust and doesn't address deeper issues, like the fact that

> you need to dump/restore databases properly and shouldn't copy files

> from a live database.

by klodolph


I'll start by saying that that increasing backup frequency from zero to anything greater than zero does, in fact, address a significant issue. I now have backups where there were none before.


Still, the point stands. Without quality backups, and quality restore strategies, the backups are not as useful as they could be.


A Little Bit of Gold and a Pager


There was some fun memeing in the Hacker News comments in response to me being a teenager:


> I know whom I won't hire for my company IT or devops or whatnot.

by wildmanx


Several people have a sense of humour:


> Good idea to let him graduate from highschool before hiring him!

by nick__m


I'll add for further memery that in addition to the stress of my entire server infrastructure burning, I had to deal with passing the behind-the-wheel driver's test. I've now been a licensed driver for about a week and a half. Coincidentally, I got my server back running the same day I passed the test.


How I'm Doing Backups


I moved all the data in my self-hosting setup into a single directory. The files were previously all lying about my home directory, which is what led to the tragic "forgetting about .env amongst all my dotfiles" incident.


I set up a cronjob that runs a script daily, set to back up the self hosting directory. It currently keeps a buffer of 31 daily and 12 monthly backups, and keeps around yearly backups forever. It's been running for a couple days now, and it's all been smooth sailing so far.


acts: Another Calendar-based Tarsnap Script


To Infinity and Beyond


I'd also like to say thanks to a number of people who were especially kind, and made this a fun experience:


1. Graham Percival, an employee at Tarsnap Backup Inc., reached out to me directly – we had a fun and interesting email exchange.

2. hannu was the first to write the later much-echoed sentiment that reflecting on one's mistakes is a useful and laudable thing to do.

hannu on Lobste.rs


I'm going to continue iterating my self-hosting setup. I've still got a couple new services I might want to throw up there. I also can't forget about the dedicated "self-hosting" page I promised...

-- Response ended

-- Page fetched on Fri May 17 10:03:31 2024