Backup/Restore + Nadel mit QR, Debug Firebase

This commit is contained in:
concierge committed 2026-11-09 05:33:39 +01:00
1 parent 4c8b11c4d5
commit c51ef02f88
16 files changed
+634 -7

No files matched your search

+58
View File
@@ -13,6 +13,64 @@
</ul>
</nav>
<section>
<h2>Datenbank-Backup</h2>
<p>
Das Backup enthält eine vollständige, konsistente Kopie der
SQLite-Datenbank. Es kann später über die Schaltfläche unten wieder
eingespielt werden. Während der Wiederherstellung sollten keine
anderen Benutzer aktiv arbeiten.
</p>
<p>
<a href="{{ url_for('admin_backup.download_backup', tenant=session.tenant_code) }}"
role="button">Backup herunterladen</a>
</p>
<form id="restoreBackupForm" method="post" enctype="multipart/form-data"
action="{{ url_for('admin_backup.restore_backup', tenant=session.tenant_code) }}">
<label for="backupFile">Backup-Datei auswählen</label>
<input type="file" id="backupFile" name="backup"
accept=".sqlite3,.sqlite,.db,application/vnd.sqlite3" required>
<button type="submit" class="secondary">Backup wiederherstellen</button>
</form>
<p>
<small>
Die Wiederherstellung ersetzt alle aktuellen Daten durch den
Inhalt der Backup-Datei. Die Datei wird vor dem Einspielen auf
Integrität und das CMBNet-Grundschema geprüft.
</small>
</p>
</section>
<section>
<h2>Konfiguration</h2>
<p>
Alle Konfigurationsparameter als Key:Value-Liste. Geheimnisse wie
<code>SECRET_KEY</code> und Service-Account-Inhalte werden maskiert.
</p>
<p>
<a href="{{ url_for('admin_backup.export_config', tenant=session.tenant_code) }}"
role="button" class="secondary">Konfiguration herunterladen</a>
</p>
<div class="config-table-wrapper">
<table id="configTable">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{% for key, value in config_items %}
<tr>
<td><code>{{ key }}</code></td>
<td><code class="config-value">{{ value }}</code></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
<section>
<h2>API-Zugriffstoken</h2>
<p>