Don't wait until you lose everything to start backing up. This guide takes 15 minutes and will save your career at least once.
Git is version control. It tracks every change you make. If something goes wrong, you can rewind time. If you're not using it, start now.
# In your project folder
git init
git add .
git commit -m "first commit - my code exists and is safe"
Do this before you write a single line of code in any project. Commit often. At minimum: once per working session, ideally after every meaningful change.
Git on your machine is good. Git on a remote server is better. If your laptop dies, your disk fails, or you accidentally rm -rf your project, the remote copy saves you.
# Create a repo on github.com, then:
git remote add origin https://github.com/yourusername/your-project.git
git push -u origin main
Private repos are free. No excuse not to use one. Your side project, your learning experiments, your half-finished ideas — all of it belongs in a private repo.
Professionals use this. So should you.
Your machine, your remote repo, and one more
SSD + cloud, or SSD + external drive
GitHub counts. So does an external SSD you keep at home
An external SSD like a Samsung T9 costs about £80 and fits in your pocket. Plug it in once a week and copy your projects folder. That's it. That's the backup that saved our production server when our AI platform deleted it.
Copilot, Cursor, Claude, ChatGPT — they all write code. They all have write access to your files. None of them have judgement about what they're overwriting.
server.js by replacing the entire file with a hallucinated rewrite. The original was gone. If we hadn't had an external backup, the production server would have been dead.
This is why we built Thuban Shield — a 5-layer bodyguard that sits between AI coding tools and your filesystem. It physically blocks destructive writes before they happen. Free with Thuban.
npx thuban shield init
Print this. Pin it to your wall. Do every item.
.env files out of git (.gitignore)npx thuban scan . before deploying anythingrm -rf without triple-checking the path.env files (password manager or encrypted vault)You will, at some point:
The question is whether you have a recovery plan or you're starting from scratch. Git + remote repo + external backup + Thuban Shield = you're covered. Everything else is gambling.
# Step 1: Backup what you have right now
# Copy your projects folder to an external drive or cloud storage
# Step 2: Git init everything
cd your-project
git init && git add . && git commit -m "safety first"
# Step 3: Push to GitHub
# Create a private repo at github.com/new, then:
git remote add origin https://github.com/you/your-project.git
git push -u origin main
# Step 4: Install Thuban Shield
npx thuban shield init
15 minutes. Do it now. Future you will be grateful.