more script stuff

This commit is contained in:
ed committed 2026-08-26 22:16:28 -04:00
1 parent 2bce73ccf3
commit 3d07098bd0
6 files changed
+141 -41

No files matched your search

+3 -3
View File
@@ -42,8 +42,8 @@ class BackupResult:
def load_destination_root(vault: Path, destination_id: str) -> Path:
"""Read the configured backup destination root from ``vault/secrets/credentials.toml``."""
path = vault / "secrets" / "credentials.toml"
"""Read the configured backup destination root from ``vault/secrets/config.toml``."""
path = vault / "secrets" / "config.toml"
if not path.is_file():
raise RuntimeError(f"missing {path}")
text = path.read_text(encoding="utf-8")
@@ -68,7 +68,7 @@ def load_destination_root(vault: Path, destination_id: str) -> Path:
if configured_id != destination_id:
raise RuntimeError(f"backup destination not configured: {destination_id}")
if not root:
raise RuntimeError("credentials.toml [backup] root is empty")
raise RuntimeError("config.toml [backup] root is empty")
return Path(root)