{# settings/_backup_report.html — what a check found (#5823), shown on the check page and on the restore confirm page (#5817): the verdict, what the backup is, each area's count, then each difference. Needs `report`. #} {% 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.