Back up often.
And beware the rm functionality which does not query you for multiple file deletes.
* * * * *
I accidently deleted all of my active php files. Luckily, many were still in emacs memory and I did have a semi-recent backup. Hopefully I won’t lose too much time.