{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, button, filter_badge %} {% block title %}Backups Management - Admin{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Admin', 'url': url_for('admin.admin_dashboard')}, {'text': 'Backups Management'} ] %} {{ page_header( icon_class='fas fa-database', title_text='Backups Management', subtitle_text='Create, download, and restore database backups', breadcrumbs=breadcrumbs, actions_html=None ) }}

{{ _('Create Backup') }}

Create a new backup of your database. The backup will be downloaded immediately.

{{ _('Restore Backup') }}

Restore your database from a backup file. This will replace all current data.

Go to Restore Page

{{ _('Existing Backups') }}

Backups stored on the server

{% if backups %}
{% for backup in backups %} {% endfor %}
Filename Created Size Actions
{{ backup.filename }}
{{ backup.created|user_datetime('%Y-%m-%d %H:%M:%S') }} {{ backup.size_mb }} MB Download
{% else %}

No backups found

Create your first backup using the button above

{% endif %}

{{ _('Important Information') }}

  • Backup Contents: Database data, uploaded files, and application settings
  • Automatic Backups: Configured in Settings (retention: {{ config.get('BACKUP_RETENTION_DAYS', 30) }} days)
  • Before Restore: Always create a backup before restoring to prevent data loss
  • Storage Location: Backups are stored in the backups/ directory
{% endblock %}