Skip to content
AnchrasDocumentation
Browse documentation

Data and storage / User guide

Backups and recovery

Configure backup plans, inspect runs, and validate recovery with isolated restore drills.

On this page

Before you begin

Choose a supported data source and destination. For native bucket plans, use exact, distinct source and artifact bucket IDs in your organization and an unversioned artifact bucket.

Get started

  1. Create a plan with a supported target, schedule, and retention window.
  2. Run it and inspect provider execution plus artifact status.
  3. Use a separate empty restore bucket or the supported isolated target for a drill.
  4. Verify restored data and cleanup evidence before relying on the plan for recovery.

Operate the service

Inspect run history, failures, artifact expiry, and restore-request status. For bucket restores, use a target distinct from both source and artifact buckets. A drill removes its own restored objects; a real restore retains verified data. Retained run metadata determines historical restore behavior even if the plan changes.

Availability and limits

S3 offload and digest-verified dry-run recovery have live evidence. Native bucket copy/restore and other provider combinations have different validation levels. Versioned or versioning-suspended artifact/restore buckets are rejected by the native bucket path. Workload-wide, file-share, and generic host-path restores are not interchangeable with supported typed protection.

Node-volume backups copy a live filesystem without a snapshot. Writes during a backup can mix versions within a file and across files. Checksums verify the copied bytes; they do not establish application consistency. Stop writers or back up an application export, and use database-native dumps for databases.

Troubleshooting

For unsupported-target errors, choose a supported provider path rather than substituting a local filesystem path. For failed integrity checks, preserve the run evidence and investigate the artifact before retrying a restore. Database-native backup and PITR use the database service.

Next steps

Use the CLI guide to automate repeatable work, or the API guide to integrate Anchras with your own tools.

CLI commands

Install and authenticate using the CLI guide. The table describes command families; required arguments are shown in their usage output.

CommandPurpose
backups plansList backup plans in one project. Flags: --project, --status, --page, --page-size. A plan whose creator the tailnet policy's anchras.com/cap/data grants no longer let read its node volume or node bucket, or write its node artifact bucket, shows (out of policy) in the status column (ADR-079 §6); it is not paused, and its next run is refused.
backups get <plan_id>Show one backup plan plus recent runs. A node volume plan also prints source_volume (the volume, its node and disk by name), its consistency_note, and a destination_warning when the artifact bucket is on another disk of the volume's own node; -o json carries them as node_volume_source, which every plan read (plans, get, create, update) fills. An out-of-policy plan prints a policy= line with the policy's explanation.
backups createCreate an org-scoped object-bucket backup plan. Requires --name and exact, distinct --source-bucket-id / --artifact-bucket-id UUIDs; --target-kind is object-storage or s3. A plan takes its source's project (the source bucket's, or the cluster's or deployment's for those scopes); --project then only asserts it, refused with failed_precondition when it names another project, and the profile's saved project is not sent. An org-scoped plan without a source bucket lands in --project (default: the global --project, then the saved project; required). With --node-volume <volume> (an id, or a name on --node) the plan backs up a node volume instead of a bucket (ADR-077 §9): the volume's node archives it file by file and streams the archive to --artifact-bucket-id itself, needing free space on the disk for one upload part (64 MiB or more), not for the archive, and the plan lives in the node's project. The bucket may not be on the volume's own disk; one on another disk of the same node is allowed with a note. Each file is consistent but files changing during the backup may not match each other, so back up databases with their own dump. A source bucket on a node (buckets create --node) is backed up the same way: the store's node archives every current object and streams the archive to the artifact bucket, which then follows the node volume rules (unversioned, not on the bucket's own disk). A bucket that isn't on a node can't back up into a node bucket yet. A run whose node is offline is recorded as skipped, not failed.
backups update <plan_id>Patch plan metadata, scope, target, schedule, retention, or --status active|paused. --node-volume with --artifact-bucket-id points a node volume plan at another volume or bucket.
backups delete <plan_id>Soft-delete a backup plan.
backups run <plan_id>Queue a manual backup run. Add --wait to execute the provider run before returning.
backups runsList backup runs of one project. Flags: --project, --plan-id, --limit. An explicit plan ID keeps plan-specific access; without one, the selected project defaults to the saved profile project or Default.
backups drillsList restore drills of one project's plans. Flags: --project, --plan-id, --backup-run-id, --limit.
backups drill <backup_run_id>Queue a non-destructive restore drill. Namespace targets use cluster/namespace flags; object-bucket targets use --target-kind object-bucket --bucket-id <empty-bucket-uuid>; a node volume backup's drill uses --target-kind node-volume --node-volume <volume> and downloads and verifies the archive on that volume's node without writing to it.
backups restore <backup_run_id>Queue dry-run, drill, or full restore (--mode restore|drill|dry-run). Object-bucket restores require a distinct empty --bucket-id; destructive restores are not allowed for buckets. A node volume backup restores with --target-kind node-volume --node-volume <volume> (an id, or a name on --node) into an empty node volume on any online node: the node verifies every file's checksum before it moves the files into the volume, and a dry run or drill only verifies. A node bucket backup restores with --target-kind object-bucket --bucket-id <id> into an empty node bucket on any online node: its node writes each object as the archive arrives, checks every object and the whole archive against their checksums, and deletes everything it wrote if any check fails; a dry run or drill only verifies. Each object it writes carries the object tag anchras-restore-id=<restore id>, so a restore run again after its node died mid-way first removes what its earlier attempt left in the bucket; a bucket holding anything else is refused.
backups restore-get <restore_id>Show a restore request.
backups failuresList failed backup runs and failed restore requests of one project; --project selects the project for both result sets, defaulting to the saved profile project or Default.
backups retentionShow artifact expiry status from one project's run retention metadata. Flags: --project, --plan-id, --limit. An explicit plan ID keeps plan-specific access.
backups export list / create (alias backup-export)List snapshot byte exports of one project (--project, --bucket, --snapshot), or export a snapshot (--snapshot, --bucket, --prefix). An export lives in its source snapshot's project; create --project only asserts it, as for snapshot create. restore imports into the export's project, and into the export's source cloud account unless --target-account <id> names another one of the same provider and region; it is required once the source account was deleted (the export shows former_source_connection_id / former_source_connection_name) or archived.

API reference

Browse procedures, request and response types, and download the complete OpenAPI contract.