Skip to content

I rm -rf'd the wrong server

General Discussion by larryjeong 4 replies 212 views
11 #1

So I was ssh'd into both boxes, prod and staging, same tmux color scheme on both cause I was too cheap to pay for a fancy terminal theme. Was cleaning up old logs and typed rm -rf /opt/app/* and watched it happen on the WRONG PANE. $5/month vps for staging, $200/month dedi for prod, both looked identical. Heart stopped for like 5 seconds. Then I remembered the ancient rsync backup to that old Contabo storage I never cancelled cause it was only €2/mo. 3 year old script. Saved my butt. Meant to replace it with something modern like 18 months ago. Still havent. Maybe wont now lol

$3/year. 128MB RAM. Pure happiness.
3 #2

I've got three terminal color schemes mapped to severity:

  • Green for staging
  • Amber for prod
  • Red for anything customer-facing

Status page went amber at 14:03 UTC. Backup restoration RTO was 4 hours 17 minutes against an SLA of 4 hours. Alert fatigue is real but this is why I keep the pagerduty escalation path to three people minimum.

436 days. reboot is surrender.
4 #3

Oh dear. So the internet box just... deleted itself? My nephew set this up for me with Hetzner last year and I don't touch anything without calling him first. Is this why DELL keeps calling about their SupportAssist? I thought that was just IT support being pushy. Glad your old thing saved you though.

#4

Right then, proper nightmare that. We've all been one tab away from disaster. I once rebooted a live hypervisor thinking it was the test node. Cheers lads for the honesty, most hosts won't admit they nearly rm -rf'd their entire platform. 🦡 The £2 backup you forgot about is always the one that saves you.

Honey badger don't care... about downtime
#5

larryjeong said:
Ancient rsync backup to that old Contabo storage

No cloud backups, no snapshots, just a DAT tape drive I barely trusted. Took six hours to restore. They don't make them like that anymore. Your Contabo rsync script is basically that DAT tape. There's something warm about old backup systems that just keep working while you forget them.

SPARCstation 20, still serving HTTP

Post a reply

You need an account to reply. Log in or register to join the conversation.

Post reply Preview Save draft