{% load i18n %} {% load operations %} {% load bootstrap_icons %} {% load static %}
{% if backups.problem %}
{% bs_icon 'exclamation-triangle' %} {{ backups.problem }}
{% else %}
{% csrf_token %}{% submission_key %}

{% blocktrans %}A running VM keeps running: its disks are copied from one instant, its file systems frozen for that instant when the guest agent answers, otherwise the backup is crash-consistent. Memory is not kept.{% endblocktrans %}

{% endif %} {% if backups.schedules %}

{% trans "Schedules:" %} {% for policy in backups.schedules %}{{ policy.name }} ({{ policy.time|time:"H:i" }}){% if not policy.enabled %} {% trans "Disabled" %}{% endif %}{% if not forloop.last %}, {% endif %}{% endfor %}

{% endif %} {% if backups.rows %}
{% for backup in backups.rows %} {% endfor %}
{% trans "Time" %}{% trans "Target" %}{% trans "Consistency" %}{% trans "Size" %}{% trans "State" %}
{{ backup.created_at|date:"Y-m-d H:i" }} {{ backup.target.name }} {% include "vmbackups/consistency.html" %} {% if backup.size %}{{ backup.size|filesizeformat }}{% else %}–{% endif %} {% include "vmbackups/state.html" with pending_deletes=backups.pending_deletes %} {% include "vmbackups/delete_form.html" with pending_deletes=backups.pending_deletes %}
{% else %}

{% trans "No backup of this VM yet." %}

{% endif %}