1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 17:36:05 +00:00
webvirtcloud/vmbackups/templates/vmbackups/policy_form.html
catborise 2c0855cf64 feat(backups): a schedule also keeps weekly and monthly backups
Besides the newest N backups of each VM, a schedule keeps the newest backup
of each of the last N weeks and of the last N months that have one (panel
time zone); 0 keeps none. The schedules list shows them.
2026-11-19 22:28:44 +03:00

26 lines
1.6 KiB
HTML

{% load i18n %}{% load django_bootstrap5 %}
<form method="post">
{% csrf_token %}
{% bootstrap_form_errors form type="non_fields" %}
{% bootstrap_field form.name %}
{% bootstrap_field form.target %}
<div class="row g-2">
<div class="col-md-4">{% bootstrap_field form.compute %}</div>
<div class="col-md-5">{% bootstrap_field form.instances %}</div>
<div class="col-md-3">{% bootstrap_field form.tag %}</div>
</div>
<div class="row g-2">
<div class="col-sm-6">{% blocktrans asvar zone_help %}Time zone: {{ time_zone }}{% endblocktrans %}{% bootstrap_field form.time help_text=zone_help %}</div>
<div class="col-sm-6">{% bootstrap_field form.full_every %}</div>
</div>
<div class="row g-2">
<div class="col-sm-4">{% bootstrap_field form.keep %}</div>
<div class="col-sm-4">{% bootstrap_field form.keep_weekly %}</div>
<div class="col-sm-4">{% bootstrap_field form.keep_monthly %}</div>
</div>
{% bootstrap_field form.frozen %}
{% bootstrap_field form.enabled %}
<p class="small text-body-secondary">{% trans "Each VM is backed up once a day, starting at the time; a VM that has not started within 6 hours waits for the next day. Older backups of each VM beyond those kept are deleted, a chain of incremental backups once all of it is beyond; backups taken by hand are not." %}</p>
<button type="submit" class="btn btn-primary">{% trans "Save" %}</button>
<a class="btn btn-outline-secondary ms-1" href="{% url 'vmbackups:policies' %}">{% trans "Cancel" %}</a>
</form>