News for hackers. Stuff that matters.
Re:Ask HN: What's your biggest programming mistake? by notaddicted on Wednesday February 02, 2011 @12:12PM (#2171001)
Before I had figured out VCSs I didn't know how to branch in subversion. I had a site that was based on a checkout from about six months before, but I had made a bunch of hotfixes to it while development continued on the main branch. I wanted to make a backup copy of the code on my workstation so I logged into the server and typed:

    $ tar xzf archive.tgz live-directory
So by typing x for extract instead of c for compress I accidentally overwrote everything right at the moment I wanted to back it up. Two hours later I had the site working again, six hours later I had it back to where it was before I deleted it. It was painful to spend a whole stressful day undoing the damage from a one character typo.

There are no comments on this comment yet.