Address validation feedback for backup workflow

This commit is contained in:
copilot-swe-agent[bot]
2026-07-17 16:58:34 +00:00
committed by GitHub
parent 9f3d3e7670
commit 992c806ed7
3 changed files with 5 additions and 4 deletions
@@ -664,7 +664,7 @@ CHECKSUM_FILE="$BACKUP_DIR/SHA256SUMS.txt"
{
echo "Sovran_SystemsOS Backup Manifest"
echo "Generated: $(date -Is)"
echo "Generated: $(date -u '+%Y-%m-%dT%H:%M:%SZ')"
echo "Timestamp: $TIMESTAMP"
echo "Hostname: $(hostname)"
echo "Role: $ROLE_LABEL"
@@ -701,7 +701,7 @@ CHECKSUM_FILE="$BACKUP_DIR/SHA256SUMS.txt"
fi
echo ""
echo "Restore guidance:"
echo "- Verify artifacts: cd '$BACKUP_DIR' && sha256sum -c SHA256SUMS.txt"
echo "- Verify artifacts: cd <backup_dir> && sha256sum -c SHA256SUMS.txt"
echo "- Extract a tar archive: sudo tar --acls --xattrs --numeric-owner -xpf <archive>.tar -C /"
echo "- PostgreSQL globals: sudo -u postgres psql -f database-dumps/postgresql_globals.sql"
echo "- PostgreSQL DB dump: sudo -u postgres pg_restore --create --clean --if-exists -d postgres database-dumps/postgresql_<db>.dump"
+2 -1
View File
@@ -1502,7 +1502,8 @@ def _detect_external_drives() -> list[dict]:
/run/media/ directly if lsblk is unavailable, applying the same
label/path filters.
Returns a list of dicts with name, path, free_gb, total_gb, fstype.
Returns:
list[dict]: Each dict contains name, path, free_gb, total_gb, fstype.
"""
import json as _json
import subprocess as _subprocess
@@ -584,7 +584,7 @@ async function pollBackupStatus() {
logDiv.scrollTop = logDiv.scrollHeight;
}
_backupLogOffset = data.offset;
var result = (data.result || "").toLowerCase();
const result = (data.result || "").toLowerCase();
if (result === "success" || result === "failed") {
stopBackupPoll();
renderBackupDone(result === "success");