{% extends "base.html" %} {% import "_macros.html" as m with context %} {% block title %}Backups{% endblock %} {% block content %}

Backups

Website files, database dumps and mailboxes in one archive. A backup of every account is made each night.

{{ m.owner_switch(accounts, owner, "/backups") }} {% if data %}
{{ m.csrf_field() }}
{% endif %}
{% if data is none %}
{% call m.empty("No hosting accounts yet", "Backups are made per account.") %}Create account{% endcall %}
{% else %}
{% if data.backups %}
{% for b in data.backups %} {% endfor %}
BackupSize
{{ b.mtime|time }}{{ b.file }} {{ b.size|size }} {{ m.icon("download") }}Download
{{ m.csrf_field() }}

The {{ data.keep }} newest backups are kept. Older ones are removed automatically.

{% else %} {% call m.empty("No backups yet", "The nightly run makes the first one, or start it now.") %}{% endcall %} {% endif %}
{% if jobs %}

Recent backup tasks

{% for j in jobs[:8] %} {% endfor %}
TaskAccountStartedResult
{{ "Backup" if j.kind == "backup" else "Restore" }}{{ j.owner }}{{ j.created|ago }} {% if j.status == "running" %}Running{% elif j.status == "done" %}Done {% if j.result.created_databases %}New database logins: {% for c in j.result.created_databases %}{{ c.name }} / {{ c.password }}{% if not loop.last %}, {% endif %}{% endfor %}{% endif %} {% else %}Failed{{ j.result.error }}{% endif %}
{% endif %} {% endif %} {% endblock %}