{% extends "base.html" %} {% block title %} — Restore #{{ restore['id'] }}{% endblock %} {% block content %} {% if streaming_id %}
Restore in progress…
{% elif restore['status'] == 'failed' %}
Restore failed: {{ restore['error_message'] or 'Unknown error' }}
{% else %} {% set rmode = restore_info.get('restore_mode', 'full') %} {% if rmode == 'chain' %}
Chain Restore — {{ restore_info.get('chain_length', 1) }} archives merged (1 full + {{ restore_info.get('chain_length', 1) - 1 }} incremental). {{ restore['file_count'] }} entity files — complete snapshot.
{% elif rmode == 'incremental' %}
Partial Restore — this is a single incremental archive. Only {{ restore['file_count'] }} entity files with changes in that specific run are present. Use Chain Restore from the Restore page for a complete snapshot.
{% else %}
Full Snapshot{{ restore['file_count'] }} entity files extracted.
{% endif %} {% if by_company %}
{% for company in by_company | sort %} {% set entities = by_company[company] %}

{% for f in entities %} {% endfor %}
Entity Format Size
{{ f['entity'] }} {{ f['ext'] }} {{ f['size_kb'] }} KB Download
{% endfor %}
{% else %}
No entity files found in this restore.
{% endif %} {% endif %} {% endblock %} {% block scripts %} {% if streaming_id %} {% endif %} {% if by_company %} {% endif %} {% endblock %}