{# settings/backup_restore.html — restoring a backup, before anything changes (#5817): what it would bring back (the same check as Check, #5823), what a restore does, then a typed confirmation. A backup that can't go in says why and offers no button. #} {% extends "base.html" %} {% from "_macros.html" import crumbs %} {% from "settings/_tabs.html" import settings_tabs %} {% block title %}Settings — Backups — Restore — Steward{% endblock %} {% block section_tabs %}{{ settings_tabs("backups") }}{% endblock %} {% block breadcrumb %}{{ crumbs([("Settings", "/settings/"), ("Backups", "/settings/backups/"), ("Restore " ~ (name or "a backup"), "")]) }}{% endblock %} {% block content %} {% if not report %}

{{ name or "The backup" }} can't be restored. {{ error }}

{% else %} {% include "settings/_backup_report.html" %}

Restore {{ name }}

{% if report.schema == "newer" %}

This Steward is older than the one that made the backup. Update Steward, then restore it.

{% elif not report.ok %}

Its key doesn't open all of its secrets, so passwords and keys wouldn't come back. Restore a different backup.

{% else %} {% if error %}

{{ error }}

{% endif %}
{{ csrf_field() }} {% if report.schema == "older" %} {% endif %}
{% endif %}
{% endif %}

Back to Backups

{% endblock %}