{% extends "base.html" %} {% import "admin_nav.html" as an %} {% block title %}Backups · Administration{% endblock %} {% block mainclass %} class="wide"{% endblock %} {% block content %}

Backups {{ owners.len()|plural("owner", "owners") }} · Administration

{% call an::nav(crate::web::admin::AdminSection::Backups) %}

Each user and organisation backs up its own repositories, to a place it controls (docs/backups.md). Here is whether each one ran and how it went; what a run wrote stays with its owner. This site's own backup runs on its host, outside the hub.

Owners' backups

{{ owners.len() }}
{% if owners.is_empty() %}

Nobody has set up a backup yet.

{% else %}
{% for o in owners %} {% endfor %}
OwnerHow oftenWhereKeptRepositoriesLast runFailed today
{{ o.setting.owner }} {% if o.setting.kind == "org" %}organisation{% else %}user{% endif %} {% if o.setting.every == "off" %}off{% else %}{{ o.setting.every }}{% endif %} {{ o.place() }} {{ o.setting.keep_days }} days {{ o.repos }} {% if let Some(r) = o.last %}{{ r.status }} {{ r.repos }} repos, {{ (r.bytes / 1024) }} KiB sent{% if !r.detail.is_empty() %}
{{ r.detail }}
{% endif %}{% else %}never{% endif %}
{% if o.failed_day > 0 %}{{ o.failed_day }}{% else %}0{% endif %}
{% endif %}

Not backed up

{{ uncovered.len() }}
{% if uncovered.is_empty() %}

Every owner of a repository backs it up.

{% else %}

These own repositories that no backup covers: their owners set one up under Settings › Backups (an organisation's under its settings).

    {% for (owner, n) in uncovered %}
  • {{ owner }} {{ n|plural("repository", "repositories") }}
  • {% endfor %}
{% endif %}
{% endblock %}