{% extends "base.html" %} {% block title %}{{ _("backup.page_title") }}{% endblock %} {% block content %}

{{ _("backup.heading") }}

{{ _("backup.subtitle") }}

{{ _("backup.config_auto_backup") }}

{% if backup_enabled %} {{ _("common.enabled") }} {% else %} {{ _("common.disabled") }}{% endif %}

{{ _("backup.config_remote_dest") }}

{% if backup_remote_destination %} {{ backup_remote_destination }} {% else %} {{ _("backup.local_only") }} {% endif %}

{{ _("backup.config_retention") }}

{{ backup_retain_hourly }} {{ _("backup.type_hourly") }} · {{ backup_retain_daily }} {{ _("backup.type_daily") }} · {{ backup_retain_weekly }} {{ _("backup.type_weekly") }}

{{ _("backup.config_total_size") }}

{{ (total_size / 1048576) | round(2) }} MB

{{ _("backup.restore_heading") }}

{{ _("backup.restore_desc_pre") }} .db.gz {{ _("backup.restore_desc_mid") }} {{ _("backup.restore_desc_warning") }}

{{ _("backup.archives_heading") }} ({{ records | length }} {{ _("backup.records_label") }})

{% if records %}
{% for r in records %} {% endfor %}
{{ _("backup.col_filename") }} {{ _("backup.col_type") }} {{ _("backup.col_created") }} {{ _("backup.col_size") }} {{ _("common.status") }} {{ _("backup.col_storage") }} {{ _("common.actions") }}
{{ r.filename }} {% if r.backup_type == 'hourly' %} {{ _("backup.type_hourly") }} {% elif r.backup_type == 'daily' %} {{ _("backup.type_daily") }} {% else %} {{ _("backup.type_weekly") }} {% endif %} {% if r.created_at %}{{ r.created_at.strftime('%Y-%m-%d %H:%M') }} UTC{% endif %} {% if r.size_bytes %} {{ (r.size_bytes / 1024) | round(1) }} KB {% else %}—{% endif %} {% if r.status == 'ok' %} {{ _("backup.status_ok") }} {% else %} {{ r.status }} {% endif %} {% if r.local_path %} {{ _("backup.storage_local") }} {% endif %} {% if r.remote_destination %} {{ r.remote_destination }} {% endif %} {% if not r.local_path and not r.remote_destination %} {% endif %} {% if r.local_path %} {{ _("common.download") }} {% endif %}
{% else %}

{{ _("backup.no_backups") }}

{{ _("backup.no_backups_hint_pre") }}{{ _("backup.backup_now") }}{{ _("backup.no_backups_hint_post") }}

{% endif %}

{{ _("backup.retention_heading") }}

{{ _("backup.retention_note_pre") }}{{ _("backup.clean_up") }}{{ _("backup.retention_note_post") }}

{% endblock %}