#5816 "Restoring mode": while a backup goes back in, the scheduler holds, ingest and HTMX answer 503 with Retry-After (agents keep their samples), and every page says what is happening. A safety backup of Steward as it stands is made first, to /data/backups and the bucket. The backup's key is put in place, the restore audited, and Steward exits with code 3 so Swarm, compose or systemd starts it fresh. A failed in-place restore changes nothing and says why on Backups; a full replace that fails after the wipe restarts into first-run setup. #5817 "Settings → Backups: Restore": a Restore button on each sent backup and on the file card. The chosen backup is checked (the same comparison as Check, now a shared partial) and held server-side for an hour under a token; it starts only once the admin types "restore", and an older backup also needs "Replace everything" ticked. A newer backup, or one whose key can't open its secrets, gets no button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
971 B
HTML
18 lines
971 B
HTML
{# settings/backup_check.html — a backup compared with what is in place (#5823):
|
|
the verdict, what the backup is (when, which Steward, its key), then each
|
|
area's count and the rows that differ. Nothing was changed to show it. #}
|
|
{% extends "base.html" %}
|
|
{% from "_macros.html" import crumbs %}
|
|
{% from "settings/_tabs.html" import settings_tabs %}
|
|
{% block title %}Settings — Backups — Check — Steward{% endblock %}
|
|
{% block section_tabs %}{{ settings_tabs("backups") }}{% endblock %}
|
|
{% block breadcrumb %}{{ crumbs([("Settings", "/settings/"), ("Backups", "/settings/backups/"), ("Check " ~ (name or "a backup"), "")]) }}{% endblock %}
|
|
{% block content %}
|
|
{% if error %}
|
|
<p class="page-verdict"><span class="tone-crit">{{ name or "The backup" }} couldn't be checked. {{ error }}</span></p>
|
|
{% else %}
|
|
{% include "settings/_backup_report.html" %}
|
|
{% endif %}
|
|
<p style="margin-top:1rem;"><a href="/settings/backups/">Back to Backups</a></p>
|
|
{% endblock %}
|