A friend of mine spilled a glass of water on her laptop last night. Keys stopped working. She spent the next hour frantically dragging files into iCloud, hoping she'd grabbed the important ones before the machine died.
She hadn't done backups. Almost nobody has — not because they're careless, but because every backup tutorial assumes you enjoy reading about "cron jobs" and "S3 buckets." You don't. You just don't want to lose your photos.
Here's the thing that's changed: you no longer have to understand any of that. You can install a free AI assistant that lives in your computer's terminal, tell it "set up automatic backups of my important folders to free cloud storage," and it does the technical part — installs the tools, writes the config, schedules it to run every day. You stay in plain English the whole time.
This guide walks you through it once. Be honest with yourself about the time: it's roughly twenty-five minutes of one-time setup, and a few of those minutes are clicking through a couple of free signups. After that, it runs itself forever and you can forget it exists.
- The backup itself
- $0. We use Cloudflare R2, which gives everyone 10 GB of free storage with no fees for getting your data back out.
- The AI assistant
- $0 if you don't already pay for one (we'll use Google's Gemini CLI, free with a Google account). If you already pay for ChatGPT or Claude, you'll use what you've got — no new cost either way.
- Failure alerts
- $0 — a free monitor emails you if a backup ever stops running.
- Your time
- ~25 minutes, once.
- What you need to know
- How to copy and paste. That's the whole list.
First, tell us your setup
(Pick your computer and your AI. The steps below rewrite themselves to match.)
Pick your computer and your AI above to see your exact steps.
You picked the free route. Good — everything from here is $0. We'll use Gemini CLI, Google's free AI assistant.
You already pay for ChatGPT, so we'll use Codex CLI, OpenAI's terminal assistant that comes with your plan. Nothing extra to buy.
You already pay for Claude, so we'll use Claude Code, Anthropic's terminal assistant that comes with your plan. Nothing extra to buy.
Step 1 — Install your AI helper
This all happens in the Terminal, a plain text window where you type instructions to your computer. Don't worry, you'll only paste a couple of lines.
Open the Terminal: press Cmd + Space, type Terminal, hit Enter. A window opens. That's it.
Open the Terminal: click Start, type Terminal (or PowerShell), hit Enter. A blue window opens. That's it.
Gemini CLI needs a free helper called Node.js first (it's just plumbing — install it once and forget it).
- Go to nodejs.org, download the "LTS" version, open the file, and click through the installer (Continue → Continue → Install).
- Back in Terminal, paste this and press Enter:
npm install -g @google/gemini-cli - Now start it by typing:
gemini - The first time, it opens your browser and asks you to sign in with your Google account. Do that, and you're connected — free.
Gemini CLI needs a free helper called Node.js first (it's just plumbing — install it once and forget it).
- Go to nodejs.org, download the "LTS" version, open the file, and click through the installer (Next → Next → Install).
- Back in your Terminal window, paste this and press Enter:
npm install -g @google/gemini-cli - Now start it by typing:
gemini - The first time, it opens your browser and asks you to sign in with your Google account. Do that, and you're connected — free.
Claude Code has a one-line installer — no Node.js, no fuss.
- Paste this into Terminal and press Enter:
curl -fsSL https://claude.ai/install.sh | bash - Start it by typing:
claude - Sign in with your Claude account when prompted.
Claude Code has a one-line installer — no Node.js, no fuss.
- Paste this into your PowerShell/Terminal window and press Enter:
irm https://claude.ai/install.ps1 | iex - Start it by typing:
claude - Sign in with your Claude account when prompted.
Codex CLI has a one-line installer — no Node.js needed.
- Paste this into Terminal and press Enter:
curl -fsSL https://chatgpt.com/codex/install.sh | sh - Start it by typing:
codex - Choose "Sign in with ChatGPT" and use your paid account.
Codex CLI has a one-line installer — no Node.js needed.
- Paste this into your PowerShell/Terminal window and press Enter:
irm https://chatgpt.com/codex/install.ps1 | iex - Start it by typing:
codex - Choose "Sign in with ChatGPT" and use your paid account.
You now have an AI assistant running in your terminal. Everything from here is just talking to it.
Step 2 — Make your free cloud locker
Your backups need somewhere to live. We'll use Cloudflare R2: 10 GB free, and — unlike most cloud storage — free to pull your data back out. This is the one part the AI can't do for you, because it involves creating an account. About 10 minutes.
- Go to cloudflare.com and sign up for a free account (or log in if you have one).
- In the left menu, click R2. Follow the prompt to enable it (it may ask for a card to verify you, but the free tier doesn't charge you).
- Click Create bucket. Name it something like
my-backups. Leave the defaults. Create it. - Now you need a key so your computer can write to that bucket. On the R2 page, find Account details → Manage next to API Tokens → Create API token.
- Give it read & write access to your bucket and create it. Cloudflare shows you three things: an Access Key ID, a Secret Access Key, and your account ID (it's in the endpoint URL, which looks like
https://abc123.r2.cloudflarestorage.com).
Keep that window open. You'll paste those three values to your AI in Step 4.
Step 3 — Decide what to back up (do this with your AI)
This is the step that keeps you inside the free 10 GB and stops you from backing up three copies of the same vacation album. You're not going to guess — you're going to ask your assistant to look and advise.
Make sure your AI assistant is running (you typed geminiclaudecodex and it's waiting for you). Paste this:
I want to set up automatic backups to a free cloud bucket that holds up to 10 GB. Before changing anything, look through my home folder and tell me: (1) my biggest folders and files, (2) any obvious duplicate photos or files I could skip, and (3) which folders hold things I'd be devastated to lose — like documents and photos — versus things I could just re-download later, like apps, caches, and downloads. Then suggest a specific list of folders that fits comfortably under 10 GB. Explain what you find before doing anything. Your assistant will look around and come back with something like "Your Photos folder is 40 GB — too big for the free tier, but your Documents (2 GB), Desktop (1 GB), and your 'Favorite Photos' album (3 GB) fit easily. I found ~800 duplicate images in Downloads we can ignore." Talk to it. Tell it what matters. You end Step 3 with a short list of folders worth protecting — chosen by you, surfaced by the AI.
Step 4 — Tell your AI to set it all up
Now the magic part. Paste this prompt, filling in the bracketed bits with the folder list from Step 3 and the three values from Step 2:
Set up automatic daily backups of these folders — [paste your folder list] — to my Cloudflare R2 bucket, using a tool called rclone. Here are my R2 details:
- bucket name: [your bucket name]
- account ID: [your account ID]
- access key ID: [your access key]
- secret access key: [your secret]
- endpoint: https://[your account ID].r2.cloudflarestorage.com
Please do this step by step, explaining each part in plain English before you run it:
1. Install rclone if it isn't already, and configure an R2 remote (provider Cloudflare, and add no_check_bucket = true).
2. Store my access key and secret securely — in a file only my account can read (lock the file permissions), and never in plaintext anywhere that syncs to the cloud. Tell me where you put them and why that's safe.
3. Run one small test upload so we can confirm it works.
4. Schedule the full backup to run once a day — but don't assume my computer is awake at a fixed time. Set it up so that if the machine was asleep or off at the scheduled time, the backup still runs as soon as it's next awake, and briefly wake the computer to run it if my system supports that. Use whatever my OS's built-in scheduler does best for this.
5. Set up a free "dead man's switch" alert so I'm warned if a backup ever fails or silently stops running: walk me through making a free account at healthchecks.io, then have my daily backup ping its URL only when it finishes successfully — so I get an email if it ever goes quiet, not just if it errors.
At the end, tell me how I'd follow up if I ever get a failure alert. Your assistant will narrate as it goes — installing rclone, writing the config, running a test, setting up the daily schedule (on a Mac it uses a built-in scheduler called launchd or cron — you don't need to touch it) (on Windows it uses the built-in Task Scheduler — you don't need to touch it), and wiring up your failure alert. When the test upload works and the alert is connected, you're done.
- Locked your keys down
- Your R2 keys are a password to your storage — anyone who gets them could read or delete your backups. They go into a file only your account can read, never a synced note or document, and the token only reaches this one bucket (so you can delete it in Cloudflare anytime to cut off access).
- Set a "dead man's switch"
- The scariest failure is the silent one — a backup that quietly stops for two months. "Email me if it breaks" can't catch that: a dead backup, or a computer that's been off, sends no mail. Instead your backup checks in when it succeeds, and a free monitor emails you if it ever stops. That catches every failure, including "it just stopped."
- Worked around a sleeping laptop
- Your computer won't always be awake at backup time, so the schedule catches up the moment it next wakes (and wakes it briefly if your system allows). The one thing no backup can do is run on a machine that's fully powered off — but it'll catch up as soon as you turn it back on.
If that alert ever arrives, don't panic — open your AI assistant and paste: "my R2 backup stopped checking in, figure out why and fix it." It can read the logs, find the cause (often something simple, like a folder that got renamed), and get you running again.
Step 5 — Confirm it's actually working
Don't take "done" on faith. Ask:
Show me that the backup ran: list what's currently in my R2 bucket, and remind me how the daily schedule is set up and how I'd check next week that it's still running. You should see your files listed in the bucket. You can also log into cloudflare.com → R2 → your bucket and see them sitting there. That's proof. From now on it runs every day on its own.
Twenty minutes, zero dollars (if you want it to be), and zero code written by you. The next time water meets laptop, the laptop is the only thing you lose.
This is the small, boring superpower of a terminal AI assistant: you describe the outcome you want in plain English, and it handles the machinery. Backups are just the first thing worth pointing it at.
More guides coming. This is the first of a series on getting an AI assistant to do the useful, slightly-technical chores you've been avoiding.