{% extends 'base.html' %} {% block title %}Maintenance{% endblock %} {% block content %}

Database Maintenance

{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
{% for category, message in messages %}
{{ message }}
{% endfor %}
{% endif %} {% endwith %}
Database Overview
{% if table_stats %} {% for table, row_count in table_stats.items() %} {% if table != 'auth_logs' and table != 'users' %} {% endif %} {% endfor %} {% endif %}
Database Size {{ db_stats.total_size_mb }} MB
auth_logs Rows {{ db_stats.auth_logs_count }}
users Rows {{ db_stats.users_count }}
{{ table }} Rows {{ row_count }}
Clear auth_logs Table

Permanently remove all rows from the auth_logs table. This action cannot be undone.

Backup Database

Dump the current SQL database to a downloadable file.

Warning: Backup size can be large if auth_logs has not been cleared.

Restore Database

Restore the SQL database from a previously exported file. This will overwrite all current data.

{% endblock %}