{% extends "base.html" %} {% set editing = original_name is not none %} {% set essh = (entry.ssh if entry and entry.ssh else {}) %} {% block title %}{{ "Edit" if editing else "New" }} device β€” rosbackup-ng{% endblock %} {% block page_title %}{{ "Edit device" if editing else "New device" }}{% endblock %} {% block head_actions %}← Devices{% endblock %} {% block content %}
{% if error %}{% endif %}
{% import "_macros.html" as m %}
{{ m.tag_input('tags', tags_text, all_tags, 'type to search or create…') }}
πŸ“¦ Backup content
πŸ—„οΈ Retention
days (blank inherits global)
πŸ—‚οΈ Storage
{% set sel = (entry.get('storage') or []) if entry else [] %}

Remote destinations for this device. Leave all unchecked to inherit (group, then the global default). Checking any replaces the inherited set. The local working copy is always kept unless you opt out below.

{% if storage_destinations %} {% for d in storage_destinations %} {% endfor %} {% else %}

No remote destinations defined yet. Add one β†’

{% endif %}
πŸ”Œ SSH connection

Leave blank to inherit the global SSH settings. Backups authenticate with an SSH key; password login isn't stored in config. Advanced ssh args and the tmpfs block, if any, are preserved on save.

{% if ssh_secrets %} {% elif vault_unlocked %}

No SSH keys in the vault yet. Store a key β†’ to reference it here.

{% else %}

The vault is locked β€” set ROSBACKUP_SECRET_KEY to reference stored keys.

{% endif %}
{% if editing %}

Want this device backed up automatically? Create a schedule β†’

{% endif %}
{% if editing %}

Danger zone

Removing a device only edits targets.yaml β€” it never touches backups already stored for it.

{% endif %} {% endblock %}