When a run fails.

Start with doctor and explain_failure. The error message is meant to name the problem. Do not invent a host, path, or password to work around it.

Ask the program

./bin/backupbinder doctor
./bin/backupbinder identify --query "SITE NAME"
./bin/backupbinder inspect_site --id SITE
./bin/backupbinder explain_failure --id SITE
./bin/backupbinder explain_failure --id SITE --run RUN

doctor reports the data home and whether restic, rclone, rsync, ssh, mysqldump, and wp were found. It does not install anything. A backup needs restic (ready). mcp also waits for restic.

explain_failure without --run reads the latest failed run. With a run id it explains that run. A successful local snapshot with a failed destination copy is called out as a destination problem, not a missing archive.

Common causes

  • Restic missing — put it on PATH, under .tools/restic, or set BACKUPBINDER_RESTIC. In this checkout, ./run setup can fetch it.
  • Wrong id or root — mutations need the exact pair from identify / inspect_site. A relative --root only works when it resolves to the registered absolute path.
  • Database dump failed — live WordPress needs wp or mysqldump, and a readable password from wp-config.php or var/secrets/. On a server site, the dump runs on that host; localhost in the config is the database on the server.
  • Server copy failed — SFTP/rsync uses SSH keys already on this machine. There is no SSH password field. Confirm host, user, remote path, and key-based login by hand.
  • Google Drive / rclone — the remote name must appear in rclone listremotes before an enabled backup uses it. Saving an enabled Drive destination checks that first.
  • Restore refused — scratch must be empty (or newly created). The live site root, its parents/children, other registered roots, and the restic repo are refused on purpose.
  • Schedule never ran — cron is not installed for you. Point system cron at run_scheduled as shown on the Schedules page.

Still stuck

Read the site page in the browser after serve, or the JSON from inspect_site, for last-run progress and restore confidence. Use Check on a successful run you do not trust. Secrets are never printed; if a command asks for a password, enter it through the documented flags or the UI — do not paste it into chat logs.