{% extends "base.html" %} {% block title %}{{ instance.name }} - OPNsense Backup Manager{% endblock %} {% block content %}

{{ instance.name }}

{{ instance.description or 'OPNsense backup instance' }}

← Back to Instances

SFTP Target Location (URI)

Use this URI format in OPNsense backup configuration:

{{ sftp_uri }}

Note: The double slash (//) or single slash after the host indicates the root path. Backups will be stored automatically in the instance-specific directory.

SSH Private Key

IMPORTANT: OPNsense requires the private key for authentication. Download and paste this into OPNsense's SSH key field.

{% if private_key_content %}
{{ private_key_content }}
Download Private Key
{% else %}

Private key file not found on disk.

{% endif %}

Security Warning: Keep this private key secure. Anyone with access to it can authenticate as this instance.

OPNsense Configuration Steps

  1. Navigate to System → Configuration → Backups in OPNsense
  2. Click on Add Backup Target or edit existing
  3. Select SFTP as the backup type
  4. Enter the following:
    • Target location (URI): {{ sftp_uri }}
      Copy the URI from above
    • SSH Private Key: Copy or download the private key from above
      ⚠️ OPNsense requires the private key, not the public key!
  5. Configure your backup schedule and encryption options as desired
  6. Save and test the backup configuration

Tip: After saving, test the connection to verify authentication works correctly.

Backups

{% if backups %} {% for backup in backups %} {% endfor %} {% else %} {% endif %}
Filename Size Upload Date Actions
{{ backup.filename }} {{ "%.2f"|format(backup.file_size / 1024 / 1024) }} MB {{ backup.uploaded_at.strftime('%Y-%m-%d %H:%M') if backup.uploaded_at else 'N/A' }} Download
No backups yet. Configure OPNsense to start backing up to this instance.
{% endblock %}