{% extends "base.html" %} {% block title %}Backup Management{% endblock %} {% block content %}

Backup Management

Database backups are created automatically: hourly (4 days), daily (3 weeks), weekly (13 weeks).

Auto-backup

{% if backup_enabled %} Enabled {% else %} Disabled{% endif %}

Remote destination

{% if backup_remote_destination %} {{ backup_remote_destination }} {% else %} Local only {% endif %}

Retention

{{ backup_retain_hourly }} hourly · {{ backup_retain_daily }} daily · {{ backup_retain_weekly }} weekly

Total local size

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

Restore from File

Upload a .db.gz backup archive to restore the database. This will overwrite all current data.

Backup Archives ({{ records | length }} records)

{% if records %}
{% for r in records %} {% endfor %}
Filename Type Created Size Status Storage Actions
{{ r.filename }} {% if r.backup_type == 'hourly' %} hourly {% elif r.backup_type == 'daily' %} daily {% else %} 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' %} ok {% else %} {{ r.status }} {% endif %} {% if r.local_path %} 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 %} Download {% endif %}
{% else %}

No backups yet.

Click Backup Now to create your first backup.

{% endif %}

Retention policy

Backups beyond these limits are automatically pruned after each new backup is created. Use the Clean Up button to apply retention manually.

{% endblock %}