Compare commits

..

No commits in common. "914185d42d172128590250783b8289252f7fec82" and "88f6ce782092a273398d0dfeb6cf93c62aff9bf7" have entirely different histories.

2 changed files with 0 additions and 34 deletions

View File

@ -88,21 +88,6 @@
<div class="backup-repo-list" id="backup-repo-list-summary"></div>
</div>
</div>
<div class="backup-card">
<div class="backup-card-header">
<h2>System config</h2>
<span class="backup-card-hint">Global settings, WebUI login &amp; backup-location credentials</span>
</div>
<p class="backup-card-hint" style="margin:0 0 12px">
Snapshot the LibrePortal system config to every enabled location so a bare-metal
restore is self-sufficient — without it, the credentials needed to reach your own
backups live only on this box. Runs automatically with “Backup all apps” too.
</p>
<div class="backup-system-actions" style="display:flex;gap:8px;flex-wrap:wrap">
<button type="button" class="backup-primary-btn" data-action="backup-system">Back up now</button>
<button type="button" class="backup-secondary-btn" data-action="restore-system">Restore…</button>
</div>
</div>
</section>
<section class="backup-tabpanel" id="backup-panel-backups">

View File

@ -176,16 +176,6 @@ class BackupPage {
return;
}
if (e.target.closest('[data-action="backup-system"]')) {
this.runBackupSystem();
return;
}
if (e.target.closest('[data-action="restore-system"]')) {
this.confirmRestoreSystem();
return;
}
const restoreBtn = e.target.closest('[data-action="restore-snapshot"]');
if (restoreBtn) {
this.openRestoreModal(restoreBtn.dataset.app, restoreBtn.dataset.loc, restoreBtn.dataset.snapshot);
@ -1734,15 +1724,6 @@ class BackupPage {
await this.runTask(`libreportal backup all`, 'backup', null);
}
async runBackupSystem() {
await this.runTask(`libreportal backup system`, 'backup', null);
}
async confirmRestoreSystem() {
if (!confirm('Restore the latest system-config snapshot?\n\nIt is restored into a staging folder (not applied) — review it, then copy what you need (e.g. backup-location credentials, login, settings) into the live config. Your running config is NOT overwritten.')) return;
await this.runTask(`libreportal restore system`, 'restore', null);
}
async runTask(command, type, app) {
if (!this.taskManager) {
this.notify('Task system unavailable', 'error');