SEC.01

The playbook

The run starts read-only: the recon probes decide what happens next. The steps that follow are adapted to the distribution and state found — a real machine is rarely clean.

  1. 01reconrestic already installed + version
  2. 02recondoes the source folder exist? size
  3. 03reconrestic config / timer already in place? do not overwrite them
  4. 04reconlocal repository already initialized? → never init again
  5. 05reconlocal repository: free space, and same disk as the source? (to report)
  6. 06recondistro → apt, dnf (Fedora) or dnf + EPEL (RHEL/Rocky/Alma)
  7. 07actInstall resticverify
  8. 08actGenerate the repository passwordverify
  9. 09actWrite /etc/restic/restic.envverify
  10. 10actInitialize the repository (if new)verify
  11. 11actCreate the restic-backup serviceverify
  12. 12actSchedule (${schedule})verify
  13. 13actEnable the timerverify
  14. 14actFirst backupverify

SEC.02

What it verifies

Each step ships its own check. The run only moves on when the check passes, so what the recipe reports as done is what is actually on the server.

  1. 01Install resticVerified byrestic version
  2. 02Generate the repository passwordVerified bystat -c '%a %U' /etc/restic/password
  3. 03Write /etc/restic/restic.envVerified bystat -c '%a' /etc/restic/restic.env && grep -c '^RESTIC_REPOSITORY=' /etc/restic/restic.env
  4. 04Initialize the repository (if new)Verified bybash -c 'set -a && . /etc/restic/restic.env && restic cat config' >/dev/null && echo ok
  5. 05Create the restic-backup serviceVerified bysystemd-analyze verify /etc/systemd/system/restic-backup.service 2>&1 | grep -c restic-backup
  6. 06Schedule (${schedule})Verified bycat /etc/systemd/system/restic-backup.timer
  7. 07Enable the timerVerified bysystemctl is-active restic-backup.timer
  8. 08First backupVerified bybash -c 'set -a && . /etc/restic/restic.env && restic snapshots --latest 1'

SEC.03

Guardrails

Non-negotiable instructions the run must respect, whatever it finds on the server.

Never show or log /etc/restic/password or restic.env. Never run restic init on an existing repository. The repository must not be inside the source; if it is on the same disk, report that it is not a real backup. No forget outside the retention policy.

SEC.04

Variables

What you choose before launching — the recipe fills in the rest.

NameMeaning
${source}Folder to back up
${repo}restic repository
${schedule}Frequency
${keep_daily}Daily backups kept

SEC.05

How a recipe runs in Servor

Servor is zero-knowledge: the platform cannot execute anything on its own. When you launch this recipe, a run reads the reconnaissance, plans the steps and asks for your approval. Each approved command is signed by your browser — with a key the server never sees — then relayed verbatim to the agent, which verifies the signature locally before executing.

recipe — fail2ban_setup150+ in catalogue
security4 steps · low risk · idempotentrun
reconsshd present? ufw active? existing jails?✓
actinstall fail2ban · write default jails✓
actenable service · restart sshd (safe)✓
verifytest ban 60s · jails active · sshd alive✓

search by intent — type “firewall”, get ufw

  • 01Read-only reconnaissance before any change
  • 02Every command signed by your browser, approved by you
  • 03Each step verified before the run moves on, every run kept in the history

SEC.06

Deploy on Servor button

Maintain restic backups or a project that needs it? Put this button in your README or on your site: one click and your users install it on their own server.

Deploy on ServorDark background
Deploy on ServorLight background
[![Deploy on Servor](https://servor.app/badges/deploy-on-servor.svg)](https://servor.app/deploy/setup-restic-backup)

SEC.07

Verified recipe

Run this recipe on your server

Connect a server, launch the recipe, and approve each step as Servor executes and verifies it. Free plan, no card required.