check-connection: verify backup namespace exists; flag namespace-not-found
This commit is contained in:
parent
0d385480d7
commit
2038e5ef88
2 changed files with 15 additions and 11 deletions
|
|
@ -87,8 +87,10 @@ read-only checks:
|
|||
|
||||
1. the files `backup.sh` needs (encryption key, exclude list) exist;
|
||||
2. `PBS_SERVER:PBS_PORT` is reachable on TCP;
|
||||
3. an authenticated API round-trip succeeds (it lists existing snapshots for
|
||||
this host on the PBS — nothing is written).
|
||||
3. an authenticated API round-trip succeeds — it confirms the token works *and*
|
||||
that the namespace `BACKUP_NS` actually exists on the server (a missing
|
||||
namespace is reported explicitly, so a new host fails here until its
|
||||
namespace has been created: `proxmox-backup-client namespace create <ns>`).
|
||||
|
||||
It prints a `[ok]` per check and exits 0 on success, 1 on failure:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue