Rules of Programming: Always Backup Your Code
Backups. We know we should have them, yet they're not always there.
What happens if the code you're working on right now is gone by tomorrow? Do you have to rewrite every single line of it? Do you use version control software and do you trust it? (Possible eye opener: Version control will help you but it will not be the sole answer to your problems.)
Use backup tools. Backup, backup, backup. Storage is cheap. Your hourly rate is probably not.
Rule #24 of programming:
Always backup your code