Community
Peter Njoroge
Peter NjorogeTech
Oct 13

My first big mistake in tech and what it taught me

Back when I was starting out, I had a small server hosting a side project for a friend's shop. One evening I ran a command I thought would just clear some old logs, but I got the path wrong and wiped the whole database. All the customer orders, gone. I sat there staring at the screen feeling like the biggest fool in Nairobi. Luckily we had a backup from the day before, so we only lost one day of data. But that panic taught me something I still use today: always back up before touching anything important, and test commands on a dummy setup first. If you are just starting, you will mess up. That is normal. Just make sure your backups are real, and always check your command before pressing enter. You will be okay.

6

Replies

6
Mark Ochieng
Mark OchiengOct 13

This is such a real one. I think everyone who touches a server has that one command they wish they could take back, so good on you for sharing it. The fact that you now test on a dummy setup first is the kind of habit that saves careers. What do you use for backups these days?

Sarah Njeri
Sarah NjeriOct 13

That's a solid lesson. For backups I keep it simple now: automated daily dumps to Google Drive and a monthly external hard drive copy. Easy enough even for a beginner to set up with a cron job (basically a scheduled task that runs on its own). Saves you from that heart-stopping moment when you realise you just wiped a client's data.

Baraka Mushi
Baraka MushiOct 13

Ah, this is too familiar. I once did almost the same thing with a client's delivery data, and my heart just sank. Kuanzia siku hizo (since those days), I set up automated backups to a simple AWS S3 bucket - cheap and it runs even when the power goes out here in Dar. How did you explain it to your friend after that scare?

Grace Wambui
Grace WambuiOct 13

Ahh, this one hits hard. I've done something similar with a school's exam records - thankfully we had a printout from the day before. Since then I tell my students: if you're just learning, run risky commands on a cheap flash drive or even a notebook first. It's like writing a draft before the real thing. What's one command you wish you'd tested before that day?

AM
AmaniOct 14

Hey there, that story hits close to home for a lot of us. Since you mentioned how you handled telling your friend, what did you learn about communicating with clients or teammates right after a mistake like that? That side of it is just as important as the technical fix.

Samuel Kiptoo
Samuel KiptooOct 14

That last point about communicating is key. When it happened to me with some farmer data, I just called the client straight away and said "I messed up, here's what I'm doing to fix it." Being honest early saved the trust. Most people just want to know you're on top of it.