On 24 October, I tested my backup. I restored my notes and my projects into a separate folder, then compared. Everything was identical. I could have stopped there, pleased.
Then I asked another question. If someone steals my laptop tonight, how do I open the copy? The answer bothered me. The SSH key that opens my backup repository was inside the backup repository.
TL;DR: a restore test proves the copy is readable from your machine. It does not prove you can open it without that machine. Run the stolen laptop test: list everything it takes to open the copy, and look at where each item lives. In my case, the passphrase lived outside the machine. The key to the storage did not. The fifth question of a useful backup: without the machine, can you still open the copy?
This article is for developers and freelancers who run their own backups, with restic, Borg, rclone or a home-made script.
My backup in a few lines
I use restic. A systemd timer runs a backup every hour to a rented storage space, reached over SFTP. The data is encrypted with a passphrase. It lives in my password manager, Vaultwarden, and in a local file only I can read.
I keep 24 hourly, 7 daily, 4 weekly and 6 monthly backups. Every week, restic cleans the repository and re-reads one slice of the data, the whole repository over a year. At the start of each coding agent session, a small script warns me if no backup has succeeded in 48 hours.
My projects weigh about 3.7 GB for 106,000 files after exclusions. This backup already stopped once for four months without a sound: that is the previous article, with its four questions. This one adds the fifth.
A restore test only tests the machine
On 24 October, I took stock. The timer was running. The repository held 32 snapshots, and restic check reported no error. A snapshot is a picture of your files at one moment. I restored my notes and my projects from the latest one, into a temporary folder. Everything was identical, apart from deliberate exclusions.
I also found two holes. My downloads folder was not backed up: 432 MB, including the documents of a house purchase and contracts. Neither were my dotfiles, that is, my configuration files such as .zshrc or .gitconfig. I have to add them to the list.
This test answers one question: is the copy readable? But it always starts from the same machine. The one that has the SSH key, the passphrase file, the script and its alias. A bag stolen on the train, a dead disk, a slightly hasty reinstall, and this test is worth nothing.
The key that opens the copy was inside the copy
My list of backed-up folders includes $HOME/.ssh. That is on purpose: lose your SSH keys and you lose access to your servers. But the key that opens my storage space is in that folder. If the laptop disappears, one copy of that key is left. It sits inside the repository it was supposed to open.
I call this the bootstrap chain: everything you need before you type the first restore command. If one link lives only inside the backup, the chain is broken. No restore test from your own machine will tell you.
To start from nothing, I need two things outside the machine. The restic passphrase, already in Vaultwarden. And an access to the storage that does not depend on the laptop key. For example the password of my provider's console, or a copy of the key in Vaultwarden. That second point is not in place yet. I am writing it here to hold myself to it.
My backup was useless without the machine it was meant to replace. Everything that opens the copy, and where each item lived on 24 October. The passphrase had a copy outside. The storage key only lived inside the copy.
A lost passphrase leaves a pile of random bytes
I know the price of a missing link. On 31 May, I created a first repository with a passphrase typed by hand. On 1 June, a reinstall wiped the file that held it. On 2 October, I wanted to reopen that repository. Two entries from my password manager, both refused. The file was not in the migration archive. The passphrase no longer existed anywhere.
The restic documentation is blunt: "Losing your password means that your data is irrecoverably lost." No back door, and that is a good thing. But a repository without its passphrase is no longer a backup. It is a pile of random bytes that costs disk space.
I created a new repository with a passphrase generated by openssl rand -base64 33, stored in Vaultwarden. Then I deleted the old one. The lesson fits in three verbs. The passphrase is generated, stored off the machine, and tested from another device.
The key that backs up can also delete
My laptop's SSH key also has delete rights on the repository. restic needs them: forget and prune remove old snapshots. But that means one command run from the laptop can wipe the whole backup. By me, or by a coding agent.
I run my agents in a permissive mode, with no confirmation on each command. The hourly backup is their safety net. A net the agent can cut, with the same rights as me. My only protection is my storage provider's snapshot layer. It takes a picture of the space every day and keeps it for about ten days, out of the laptop's reach.
The restic documentation describes the right answer: append-only mode. The server accepts new backups and refuses deletions. rest-server, restic's official HTTP server, offers it with the --append-only flag. For other storage backends, rclone can play that role. forget and prune then run from a separate, well-secured machine, with the --keep-within option. That is my next step.
The stolen laptop test, as a procedure
The test fits in one sentence. Take a machine that is not yours, and restore one file. No shortcuts: not your SSH alias, not your script, not your passphrase file. Before you start, write the list of what you need. For each item, note where it lives, and whether it is on the machine. Here is mine, as of 24 October.
The procedure fits on one page. It belongs in the password manager, not on the machine.
# Check the passphrase and list the snapshots
restic -r sftp:user@storage:/repo snapshots
# Find every version of one file
restic -r sftp:user@storage:/repo find 'purchase-agreement*.pdf'
# Restore a folder into a temporary directory, never over the original
restic -r sftp:user@storage:/repo restore latest \
--include /home/jules/projects/my-project --target /tmp/restore
# Browse every snapshot as a plain folder (needs FUSE)
mkdir -p /tmp/restic-mnt
restic -r sftp:user@storage:/repo mount /tmp/restic-mnt
# Add a second passphrase to the repository
restic -r sftp:user@storage:/repo key add --new-password-file /path/recovery.txt
restic accepts several keys on one repository. restic key add adds a second passphrase, read from a file with --new-password-file. One for the machine, one on paper in a safe. If one leaks, restic key remove drops it without touching the data.
Last question of the test: who else can open the copy if you are in hospital? Write down a name.
The 3-2-1 rule says nothing about the key
The 3-2-1 rule is everywhere. The US CERT states it this way: three copies of every important file, on two different media, one of them offsite. ANSSI, the French cybersecurity agency, and the CNIL repeat it, with one offline copy. My backup does not even fully meet it: I lack the offline copy.
But this rule counts copies of the data, not copies of the key. Three encrypted copies and zero copies of the passphrase add up to zero copies. Three copies and an access key that lives only inside the copy add up to zero as well.
ANSSI is one of the few sources that writes it down, in its November 2025 guide. Its recommendation R30 asks you to study key management: who holds the keys, where they are stored (a vault), how they are backed up (offline). For a team, that is a runbook. For a freelancer, a note in the password manager.
Hence the fifth question, after the four from the previous article: without the machine, can you still open the copy?
The checklist
Three copies of the data and zero copies of the key add up to zero copies.
- [ ] Write the list of everything it takes to open the copy: passphrase, storage access, repository address, tool
- [ ] For each item, note where it lives. Nothing may live only on the machine, or only inside the backup
- [ ] Generate the passphrase and store it in your password manager before the first backup, with a storage access that does not depend on the machine
- [ ] Restore one file from another machine, without your alias, your script or your passphrase file
- [ ] Give the backup client append-only access, and run
forgetandprunefrom another machine - [ ] Check that your sensitive folders are in the list: downloads, contracts, dotfiles
- [ ] Decide who else can open the copy when you are not there, and write it down
What to remember
My backup was running. It restored fine. And it was useless without the machine it was meant to replace. A restore test from your own machine tests your machine. The stolen laptop test tests your backup.
Run it once. In my case, it found a key inside the copy and two folders missing.
Want to check that your team's backup opens without the machine that produced it? Let's talk.
Sources: restic, repository password and SFTP backend · restic, managing repository keys · restic, snapshots, find and check · restic, restore and mount · restic, forget and append-only mode · rest-server, --append-only flag · CISA (US-CERT), Data Backup Options, 3-2-1 rule · ANSSI, backup fundamentals (BP-100, 27/11/2025, French) · CNIL, backups and business continuity (French)

Top comments (1)
This is the backup post I wish I had read before building my own habits around a project — the distinction between "the copy is readable" and "I can open the copy without the machine" is the whole lesson, and most restore guides never make it.
The bootstrap chain framing is what stuck with me: every item that opens the backup has to live outside the machine and outside the backup itself, or the chain has a single point of failure you only discover on the worst day. The delete-rights detail is the second gut punch — a key that can prune can also wipe, and running agents in permissive mode makes that a real risk, not a theoretical one.
For a solo builder whose whole project lives on one laptop, what would you put first: the append-only server, or the second passphrase on paper in a safe?