Files
Pulse/docs/RECOVERY.md
pulse-triage[bot] 90f5e9c687 Distinguish Recovery backups before configuration import
Explain the four existing backup scopes in the Recovery guide, link their established procedures, and keep configuration replacement separate from workload recovery and guest thaw. Add rendered guidance and link regression checks.

Contract-Neutral: Documentation and rendered scope checks only; existing export/import, polling, guest safety and recovery contracts are unchanged.
Change-source: pulse-maintainer
2026-10-07 12:01:50 +01:00

241 lines
13 KiB
Markdown

# Recovery
Pulse collects backup, snapshot and replication evidence from connected
providers. Use it to find recorded artifacts, identify gaps in protection and
check the source of a backup before using the provider's own recovery tools.
Pulse does not restore workloads from these views.
## Choose the right backup
The **Recovery** settings panel and the platform backup views serve different
jobs. Their backups are not interchangeable:
| Backup | What it is for | What it does not establish |
|---|---|---|
| Provider backup, snapshot or replication artifact | Recovering a monitored workload through the provider's own tools; see [where to look](#where-to-look) | A successful task does not prove guest thaw or application recovery |
| **Create Backup** in **Settings → System → Recovery** | Encrypted transfer of the [included Pulse configuration](MIGRATION.md#configuration-transfer) | Not a workload backup or a full Pulse installation backup; history and agent enrolment state are excluded |
| Consistent filesystem/volume backup of Pulse | [Full-state recovery](MIGRATION.md#full-state-recovery), including retained history and the matching encryption key | Not a backup of the workloads Pulse monitors |
| Updater installation snapshot | Version-specific [server update recovery](AUTO_UPDATE.md#what-an-update-snapshot-contains) | A recorded snapshot path does not prove a complete or consistent data backup |
**Restore Backup** in the Recovery settings panel imports Pulse configuration,
not a VM, container, dataset or PVC. Import **replaces** the included settings
and API-token records; it does not merge them. Export the destination's existing
configuration before importing, retain the original passphrase privately, and
follow the [transfer and validation steps](MIGRATION.md#transfer-the-included-configuration).
Do not import configuration, restore Pulse data or restart monitoring to clear
a guest freeze or an incorrect backup badge. Follow the independent guest-safety
checks below and the provider's recovery procedure instead.
## Where to look
There is no top-level Recovery page. Open the existing platform view:
- **Proxmox → Backups** (`/proxmox/backups`): **By date** lists recorded
artifacts; **Coverage** groups them by workload. Expand a coverage row to
inspect its posture reason and individual artifacts. Backup servers have
their own rows on the same page.
- **TrueNAS → Protection** (`/truenas/protection`): snapshots and replication
activity reported by the TrueNAS connection.
- **Kubernetes**: recovery records depend on the agent reporting VolumeSnapshot
or Velero inventory. An installed agent or a connected cluster does not
establish that either is available.
Provider collection is separate from presentation. Not every platform displays
the same columns or filters, and a missing reading is not proof that no backup
exists. [Check missing evidence](#missing-or-inconsistent-evidence) before
changing the provider or Pulse's stored data.
## What the evidence means
Keep these observations separate:
| Observation | What it establishes | What it does not establish |
|---|---|---|
| Successful task or `success` outcome | A provider-reported result or collected artifact | Guest thaw, application health or a tested restore |
| Running task or partial artifact | Work or an incomplete artifact is observed | A completed recovery point, even if a size is shown |
| Verified backup | The provider's verification result for that artifact | A successful application restore or guest thaw |
| Recent snapshot | A point on the source system | An independent copy that survives loss of that system |
| Protected posture | Current, linked evidence meets Pulse's protection policy | A recovery guarantee or permission to discard other backups |
**A backup task's OK status is not confirmation that the guest has thawed.**
For an affected installation, use the
[backup safety precaution](VM_DISK_MONITORING.md#backup-safety) **before a planned
freeze-enabled Proxmox backup**. It covers the actual server deployment and
automatic updaters, not just a guest agent. A planned pause is not an incident
recovery procedure, and stopping Pulse does not cancel a guest-agent request
already issued. If an existing operation's state is unknown, do not start a
backup on the strength of a stopped service or an elapsed waiting period.
Keep Pulse stopped until the backup has ended and **independent post-backup
checks confirm all three**:
1. Guest thaw.
2. Fresh successful workload writes to **every filesystem covered by the backup**.
3. Workload liveness.
Use the workload's established safe checks, independent of Pulse and the QEMU
Guest Agent. An OK task, an absent lock, a console connection, a successful read
or a write to only the OS disk is not enough. If any check fails or is
unavailable, leave Pulse and its automatic updater paused and use the
guest/platform's recovery procedure. Do not force writes, repeat a backup or
send guest-agent probes to fill the gap.
After all checks pass, restore **only services and timers that were active
before the pause**. Unknown pre-pause states are not permission to start them.
An updater must not restart a previously inactive server; follow the
deployment-specific restoration steps in the precaution. **Pulse monitoring
and alert delivery are unavailable while it is stopped**; arrange independent
outage coverage. Do not disable filesystem freezing to make a task look
successful. This precaution is not proof of a repaired or reproduced native
thaw failure.
Before relying on an artifact, confirm its provider, repository, workload
identity and time in the provider's own tools. For recovery assurance, test a
restore to an isolated destination using that provider's procedure and check
the restored application's data and operation. Do not overwrite the live
workload as a diagnostic test, delete older backups, or change retention to
hide a Pulse display problem.
### Artifacts and subjects
A **recovery point** is a collected backup, snapshot or replication result.
Its **subject** is the protected workload, dataset or PVC; its **repository**
is the storage location. Pulse links subjects to monitored resources where it
can, and retains provider-local references when it cannot.
Independent Proxmox installations can reuse a VMID. Compare the connection,
node, guest type/ID, datastore, namespace and artifact time; matching names or
VMIDs alone are not sufficient to identify a duplicate or the right restore.
Direct PBS observations and PBS-through-PVE observations can differ in detail.
See [PBS data sources](PBS.md#data-source-indicator).
### Outcomes and verification
Recorded outcomes are `success`, `warning`, `failed`, `running` or `unknown`.
An unknown outcome is not success; an error fetching records is not an empty
history. Where available, the API returns `startedAt`, `completedAt`,
`sizeBytes` and provider-specific `details`. Missing times and sizes are not
zero-valued measurements. A source backup timestamp is not necessarily the
completion time of a later copy or sync task.
The `verified` field is optional: `true` is a positive provider verification
observation; `false` supplies no positive verification, so inspect the
provider's detailed state; an omitted value supplies no verification result.
Do not interpret an omitted field as a failed verification. Rollups may also
report `verifyIntent` (`verified`, `stale` or `unknown`) and `lastVerifiedAt`;
these summarise observed verification recency, not an end-to-end restore test.
### Protection posture
Pulse combines subject-linked artifacts with current provider collection
evidence:
- **Protected**: a qualifying current recovery point is linked to the resource
and complete provider evidence does not invalidate the claim.
- **Attention**: evidence is stale, failing, incomplete or unverified when
verification is expected.
- **Unprotected**: complete evidence confirms that no qualifying protection
exists.
- **Unknown**: identity, permissions or collection completeness cannot support
a stronger claim.
A retained artifact can remain visible while posture is unknown. A running
backup is not a new completed recovery point; inspect any earlier completed
point separately rather than treating current activity as protection.
For PBS artifacts that disagree with the health strip, use the
[backup health checks](PBS.md#backups-are-visible-but-coverage-says-unprotected)
to compare one workload's explanation and provider evidence without running a
new backup or changing stored history.
## Missing or inconsistent evidence
1. Open the relevant platform view, clear its search and filters, and check the
selected connection and organisation. Record the route that is affected.
2. Inspect connection health, the latest observation time and any collection
error. Wait for that provider's configured polling interval, not a fixed
30-second assumption. A green connection badge does not prove that every
history or backup read succeeded.
3. Check the expected artifact in the provider's own inventory using an
existing authorised session. Verify its identity, location and permissions;
do not grant write or restore permissions merely to fill a monitoring row.
4. For an **Unknown** posture, expand the coverage row and use the specific
limiting evidence. Resolve that collection or identity gap; do not turn
retained artifacts into a protection claim by clearing Pulse history.
If the guest stopped responding during backup, preserve the task's warning or
thaw error and the observations already available. Do not repeat the backup,
reset the guest, or run active guest-agent probes just to reproduce it. Use
the provider's recovery procedure; a separate trusted guest console can help
assess the guest, but a console connection alone does not clear the precaution.
Keep monitoring paused until the independent post-backup checks above confirm
thaw, writes to every covered filesystem and workload liveness, not just until
Pulse's backup badge looks healthy.
When reporting missing records, share the failing view, running Pulse version,
affected provider, time range, expected reading and relevant redacted error.
Use consistent placeholders for private hostnames, datasets and IDs. Do not
share full backup inventories, request headers, tokens, cookies or recovery
keys. See [safe issue reporting](TROUBLESHOOTING.md#-getting-help).
## API reference
These are read-only monitoring endpoints. Use an existing authenticated browser
session or a `monitoring:read` token supplied through a private header file,
never a token in a URL or diagnostic command argument. See [API access](API.md).
| Method | Endpoint | Result |
|---|---|---|
| `GET` | `/api/recovery/points` | Paged recovery points |
| `GET` | `/api/recovery/rollups` | Paged subject summaries |
| `GET` | `/api/recovery/series` | Completed-point counts grouped by day |
| `GET` | `/api/recovery/facets` | Filter values from matching points |
| `GET` | `/api/recovery/postures` | Canonical resource postures and limiting evidence |
### Point and rollup filters
Points, rollups, series and facets accept these filters:
| Parameter | Values or meaning |
|---|---|
| `platform` | `proxmox-pve`, `proxmox-pbs`, `truenas` or `kubernetes`; `provider` is an alias |
| `kind` | `backup`, `snapshot` or `other`; TrueNAS replication results use `backup` |
| `mode` | `local`, `remote` or `snapshot` |
| `outcome` | `success`, `warning`, `failed`, `running` or `unknown` |
| `from` | Lower time bound in RFC3339, for example `2026-10-01T00:00:00Z` |
| `to` | Upper time bound in RFC3339 |
| `subjectResourceId` | Exact linked resource identity; `itemResourceId` is an alias |
| `rollupId` | Exact subject summary identity |
| `q` | Text search; `query` is an alias |
For example, this relative browser request selects PBS backup records within
the stated time bounds without putting a credential in the URL:
```text
/api/recovery/points?platform=proxmox-pbs&kind=backup&from=2026-10-01T00:00:00Z&to=2026-10-02T00:00:00Z&page=1&limit=100
```
Use `from`/`to`, not `since`/`until`, and `subjectResourceId`, not `subject`.
Unrecognised query names do not apply those filters. Invalid `from` or `to`
values return an error rather than an empty result.
Points and rollups accept `page` (starting at 1) and `limit` (default **100**,
maximum **500**). Their response has a `data` array and `meta` pagination;
inspect every required page rather than assuming the first is the inventory.
Series and facets return aggregate data, not that paged-list contract.
### Posture lookup
`/api/recovery/postures` uses a separate filter contract. Repeat `resourceId`
for a batch of at most **200** resource IDs, or omit it for a paged list.
`state=attention` selects attention postures; `page` and `limit` control list
pagination. Its response includes policy and provider evidence states. Do not
apply point filters to this endpoint or re-derive posture from artifact count.
## See also
- [PBS integration](PBS.md) — access, data sources and host History
- [TrueNAS integration](TRUENAS.md) — snapshots and replication monitoring
- [VM disk monitoring](VM_DISK_MONITORING.md) — guest-agent and backup safety
- [Migrating Pulse](MIGRATION.md) — configuration transfer versus a full-state backup of Pulse itself