{% 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 }}
Scheduled Limit
{{ scheduled_prune_limit|default:"none" }}
Incomplete
{{ plan.incomplete|length }}
{% if scheduled_prune_exceeded %}

Scheduled Prune Limit

This plan would delete {{ plan.delete|length }} snapshot(s), which exceeds the scheduled prune limit of {{ scheduled_prune_limit }}. Scheduled pruning will refuse to apply this plan until the limit or retention selection is adjusted.

{% endif %} {% if plan.incomplete %}

Incomplete Snapshots

{{ plan.incomplete|length }} incomplete snapshot(s) exist for this host. Retention does not delete incomplete snapshots automatically because they can indicate an interrupted backup that should be inspected first.

{% endif %}

Policy

Daily: {{ plan.retention.daily }}
Weekly: {{ plan.retention.weekly }}
Monthly: {{ plan.retention.monthly }}
Yearly: {{ plan.retention.yearly }}
Protect bases: {{ protect_bases|yesno:"yes,no" }}
{% if protect_bases %} Base snapshots referenced by kept snapshots are also kept and marked with a base-of reason. {% else %} Base snapshots are only kept when they match the regular retention policy. {% endif %}
{% if schedule %}
Schedule pruning: {{ schedule.prune|yesno:"enabled,disabled" }}
Schedule max delete: {{ schedule.prune_max_delete }}
{% endif %}

Would Delete

{% for snapshot in plan.delete %} {% empty %} {% endfor %}
Kind Dirname Started Status Reason Path
{{ snapshot.kind }} {{ snapshot.dirname }} {{ snapshot.dt }} {{ snapshot.status|default:"" }} {{ snapshot.reason }} {{ 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 {{ plan.delete|length }} for the 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 }}
{{ apply_form.confirm_delete_count.errors }} {{ apply_form.confirm_delete_count }}
{{ apply_form.confirm_delete_count.help_text }}
{% endif %}

Keep Reasons

{% for snapshot in plan.keep_items %} {% empty %} {% endfor %}
Kind Dirname Started Status Reasons
{{ snapshot.kind }} {{ snapshot.dirname }} {{ snapshot.dt }} {{ snapshot.status|default:"" }} {{ snapshot.reason }}
No snapshots matched this retention selection.
{% if plan.incomplete %}

Incomplete Snapshots

{% for snapshot in plan.incomplete %} {% endfor %}
Dirname Started Status Reason Path
{{ snapshot.dirname }} {{ snapshot.dt }} {{ snapshot.status|default:"" }} {{ snapshot.reason }} {{ snapshot.path }}
{% endif %} {% endblock %}