Encrypted backups you can actually restore, even after ransomware or a dead laptop
restic copies your folders to an external drive, encrypted, and keeps a history of snapshots you can step back to. You'll run a ransomware drill: scramble a folder, back up the rubbish on purpose, and still get every file back byte for byte.
- A ransomware drill: files scrambled, then every one recovered
- A clean-up rule, a nightly schedule and a free off-site copy, plus the one mistake that could wipe your good copies
- Level 0 done (you can open PowerShell and
cdinto a folder) - An external USB drive or stick with more free space than the folders you want to back up
- A password manager or a safe place for one long password (KeePassXC is perfect)
- About 45MB of disk space for restic and its download
Get restic (no installer)
restic is a single program file. Nothing to install, nothing running in the background.
Download the official zip from the restic releases page ↗. These lines fetch version 0.19.1 into your user folder and print its fingerprint:
Windowscd $HOME Invoke-WebRequest -UseBasicParsing "https://github.com/restic/restic/releases/download/v0.19.1/restic_0.19.1_windows_amd64.zip" -OutFile restic.zip (Get-FileHash restic.zip).HashOutputDA948AD707ED690426473AABA2046CD61F8F90F6F0E7DAB6BE0D5796531DE67DThat matches the
SHA256SUMSfile on the release page, so it's the genuine download (11MB). Now unpack it, give the program a short name, and check it runs:TerminalExpand-Archive restic.zip -DestinationPath $HOME\restic Rename-Item $HOME\restic\restic_0.19.1_windows_amd64.exe restic.exe Set-Alias restic "$HOME\restic\restic.exe" restic versionOutputrestic 0.19.1 compiled with go1.26.4 on windows/amd64Mac (Homebrew)brew install resticLinux (Debian/Ubuntu)sudo apt install resticTipSet-Aliasonly lasts until you close PowerShell. In the next step you'll make a three-line "start of session" block to paste each time.
restic version prints a version number.If it breaks'restic' is not recognised + 1 more
'restic' is not recognised
Set-Alias line again in this window. It disappears every time you open a new PowerShell.I used winget and 'restic' still isn't recognised
restic_0.19.1_windows_amd64.exe, so plain restic isn't found. Use the zip steps above instead.