Address validation feedback for backup workflow
This commit is contained in:
@@ -664,7 +664,7 @@ CHECKSUM_FILE="$BACKUP_DIR/SHA256SUMS.txt"
|
|||||||
|
|
||||||
{
|
{
|
||||||
echo "Sovran_SystemsOS Backup Manifest"
|
echo "Sovran_SystemsOS Backup Manifest"
|
||||||
echo "Generated: $(date -Is)"
|
echo "Generated: $(date -u '+%Y-%m-%dT%H:%M:%SZ')"
|
||||||
echo "Timestamp: $TIMESTAMP"
|
echo "Timestamp: $TIMESTAMP"
|
||||||
echo "Hostname: $(hostname)"
|
echo "Hostname: $(hostname)"
|
||||||
echo "Role: $ROLE_LABEL"
|
echo "Role: $ROLE_LABEL"
|
||||||
@@ -701,7 +701,7 @@ CHECKSUM_FILE="$BACKUP_DIR/SHA256SUMS.txt"
|
|||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
echo "Restore guidance:"
|
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 "- 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 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"
|
echo "- PostgreSQL DB dump: sudo -u postgres pg_restore --create --clean --if-exists -d postgres database-dumps/postgresql_<db>.dump"
|
||||||
|
|||||||
@@ -1502,7 +1502,8 @@ def _detect_external_drives() -> list[dict]:
|
|||||||
/run/media/ directly if lsblk is unavailable, applying the same
|
/run/media/ directly if lsblk is unavailable, applying the same
|
||||||
label/path filters.
|
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 json as _json
|
||||||
import subprocess as _subprocess
|
import subprocess as _subprocess
|
||||||
|
|||||||
@@ -584,7 +584,7 @@ async function pollBackupStatus() {
|
|||||||
logDiv.scrollTop = logDiv.scrollHeight;
|
logDiv.scrollTop = logDiv.scrollHeight;
|
||||||
}
|
}
|
||||||
_backupLogOffset = data.offset;
|
_backupLogOffset = data.offset;
|
||||||
var result = (data.result || "").toLowerCase();
|
const result = (data.result || "").toLowerCase();
|
||||||
if (result === "success" || result === "failed") {
|
if (result === "success" || result === "failed") {
|
||||||
stopBackupPoll();
|
stopBackupPoll();
|
||||||
renderBackupDone(result === "success");
|
renderBackupDone(result === "success");
|
||||||
|
|||||||
Reference in New Issue
Block a user