{# 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 %}

{{ name or "The backup" }} couldn't be checked. {{ error }}

{% else %} {% set tone = "tone-crit" if not report.ok else ("tone-ok" if not report.changes else "tone-warn") %}

{{ report.summary() }}

File
{{ report.name }}
Made
{% if report.made_at %}{{ report.made_at|when }}{% else %}—{% endif %} by Steward {{ report.manifest.steward_version or "—" }}
Schema
{%- if report.schema == "same" %}The same as this Steward's. {%- elif report.schema == "older" %}Older than this Steward's. A restore would replace everything, and Steward would bring it up to date on start. {%- else %}Newer than this Steward's. This Steward can't restore it; update Steward first.{% endif %}
Secret key
{%- if report.key_same %}The one in use here.{% else %}A different one. A restore would put it in place, and passwords and keys stored since would need entering again.{% endif %} {%- if report.sealed %} It opens {{ report.sealed - report.unopened }} of the backup's {{ report.sealed }} sealed value{{ "s" if report.sealed != 1 }}.{% endif %}
{% for a in report.areas %} {% set differ = a.tables|sum(attribute="differ", start=[])|length %} {% set only_b = a.tables|sum(attribute="only_backup", start=[])|length %} {% set only_h = a.tables|sum(attribute="only_here", start=[])|length %} {% endfor %}
AreaSameDifferOnly in the backupOnly here
{{ a.name }} {{ a.same }} {% if differ %}{{ differ }}{% else %}—{% endif %} {% if only_b %}{{ only_b }}{% else %}—{% endif %} {% if only_h %}{{ only_h }}{% else %}—{% endif %}
{% for a in report.areas if a.changes or a.tables|selectattr("note")|list %}

{{ a.name }}

{% endfor %}

Left out of the comparison: what Steward records as it runs (when an agent or monitor was last seen, a schedule's last run, the backup history), since it changes by the minute. A restore still brings those back as they were in the backup.

{% endif %}

Back to Backups

{% endblock %}