{% extends 'base/layout.html' %} {% block title %}Database Backups{% endblock %} {% block content %}

Database Backups

{% csrf_token %}
Current Running NetBox Version: {{ current_version }}
{% if backup_running %}
A backup is running. This page refreshes every 5 seconds.
{% endif %} {% if not pg_dump_ready %}
pg_dump was not found. Install the PostgreSQL client tools on the host that runs the RQ worker.
{% endif %}
Free space
{{ storage.free_display }}
of {{ storage.total_display }}
Database size
{{ storage.required_display }}
Reserve
{{ storage.reserve_display }}
stays free after the backup
Space needed
{{ storage.needed_display }}
Status
{% if storage.enough %} {{ storage.status_label }} {% else %} {{ storage.status_label }} {% endif %}
{% if storage.path %}
Backup directory: {{ storage.path }}
{% endif %} {% if storage.reserve_note %}
{{ storage.reserve_note }}
{% endif %} {% if not storage.enough %}
{{ storage.warning }}
{% endif %}
{% for backup in backups %} {% empty %} {% endfor %}
Filename Backup Date & Time File Size SHA-256 NetBox Version Running Version Compatibility Status Job Status Started by Deleted by Actions
{{ backup.record.filename }} {{ backup.record.created_at }} {{ backup.record.progress_display }} {% if backup.record.checksum %} {{ backup.record.checksum }} {% else %} — {% endif %} {{ backup.record.netbox_version }} {{ current_version }} {% if backup.record.status == "completed" or backup.record.status == "verified" %} {% if backup.compatible %} Compatible {% else %} Version Mismatch {% endif %} {% else %} — {% endif %} {% if backup.record.status == "running" %} Running {% elif backup.record.status == "failed" %} Failed {% if backup.record.error %}
{{ backup.record.error }}
{% endif %} {% elif backup.record.status == "deleted" %} Deleted {% elif backup.record.status == "verified" %} Verified {% else %} Completed {% endif %}
{{ backup.record.created_by|default:"—" }} {{ backup.record.deleted_by|default:"—" }} {% if backup.record.status == "completed" or backup.record.status == "verified" %} Download
{% csrf_token %}
{% elif backup.record.status == "failed" %}
{% csrf_token %}
{% else %} — {% endif %}
No backups yet.
{% if backup_running %} {% endif %} {% endblock %}