{% extends "base.html" %} {% import "_macros.html" as m %} {% block title %}Backups: {{ target.name }} — rosbackup-ng{% endblock %} {% block page_title %}Backups · {{ target.name }} {{ target.host }}{% endblock %} {% block head_actions %}{{ m.icon_browse('/backups', 'All devices') }}{% endblock %} {% block content %}
{% if remotes and allow_download %}

Also mirrored to: {% for d in remotes %}{{ d.name }}{% endfor %} — downloads can be pulled from any of them.

{% endif %} {% if not allow_download or not allow_restore %}

{% if not allow_download %}Backup download is disabled by configuration.{% endif %} {% if not allow_restore %}Push-restore is disabled by configuration.{% endif %}

{% endif %} {% for s in sets %}
{% if s.when %}{{ s.when | datetime }}{% else %}{{ s.timestamp }}{% endif %} {{ s.files|length }} file{{ '' if s.files|length == 1 else 's' }} {{ s.directory }} {% for f in s.files %} {% endfor %}
FileTypeSize
{{ f.name }} {{ f.ext }} {{ f.size | filesize }} {% if allow_download %} {% if f.ext in ['rsc', 'info'] %}{{ m.icon_preview('/backups/preview/file?path=' ~ (f.rel_path|urlencode)) }}{% endif %} {{ m.icon_download('/backups/download/file?path=' ~ (f.rel_path|urlencode), 'Download') }} {% for d in remotes %}{{ m.icon_download('/backups/download/file?dest=' ~ (d.name|urlencode) ~ '&path=' ~ (f.rel_path|urlencode), 'Download from ' ~ d.name) }}{% endfor %} {% endif %} {% if allow_restore and f.ext == 'backup' %}{{ m.icon_restore('/backups/' ~ (target.name|urlencode) ~ '/restore?path=' ~ (f.rel_path|urlencode)) }}{% endif %}
{% else %}

No backup sets found for this device on the local destination.

{% endfor %}
{% endblock %}