{% extends "pobsync_backend/base.html" %} {% block title %}Retention plan | {{ host.host }}{% endblock %} {% block content %}

Retention Plan: {{ host.host }}

Back to host Scheduled Manual All Protect bases
Source
{{ plan.source }}
Kind
{{ plan.kind }}
Keep
{{ plan.keep|length }}
Would Delete
{{ plan.delete|length }}

Policy

Daily: {{ plan.retention.daily }}
Weekly: {{ plan.retention.weekly }}
Monthly: {{ plan.retention.monthly }}
Yearly: {{ plan.retention.yearly }}
Protect bases: {{ protect_bases|yesno:"yes,no" }}

Would Delete

{% for snapshot in plan.delete %} {% empty %} {% endfor %}
Kind Dirname Started Status Path
{{ snapshot.kind }} {{ snapshot.dirname }} {{ snapshot.dt }} {{ snapshot.status|default:"" }} {{ snapshot.path }}
Retention would not delete snapshots for this selection.
{% if plan.delete %}

Apply Retention

{% csrf_token %} {{ apply_form.non_field_errors }} {{ apply_form.kind.as_hidden }}
{{ apply_form.max_delete.errors }} {{ apply_form.max_delete }}
Must be at least the number of snapshots shown in Would Delete.
{{ apply_form.protect_bases.errors }} {{ apply_form.protect_bases }}
{{ apply_form.confirm_host.errors }} {{ apply_form.confirm_host }}
{{ apply_form.confirm_host.help_text }}
{% endif %}

Keep Reasons

{% for dirname, reasons in plan.reasons.items %} {% empty %} {% endfor %}
Dirname Reasons
{{ dirname }} {{ reasons|join:", " }}
No snapshots matched this retention selection.
{% endblock %}