A backup vault is an object-storage bucket your organisation owns that Ankra writes cluster backups to, and a restore point is one immutable copy of a stack’s data inside it. Register a vault once, protect a stack, and every backup, restore and clone is a verb over the restore points that land there.
Why a vault first
Ankra’s answer to “copy this database to another cluster” is the industry one: take a backup, then restore it on the target. That keeps data off the platform entirely - the source cluster writes to the bucket, the target reads from it over HTTPS - and it means a disaster-recovery copy exists as a side effect of every clone. That only works with somewhere to write to, which is what a vault is. Registering one is a one-time, organisation-level step, on Infrastructure → Backups and storage (/next/organisation/storage). Everything per Stack - protection, restore points, restore and clone - is on the cluster’s Backups page (/next/clusters/<cluster-id>/backups).
For a hands-on run through protect, restore and clone that ends with the data checked on both clusters, follow Run a restore drill. This page is the reference for every option.
Pipelines are the exception, and they do not wait for this. A pipeline step’s log, a
scan stage’s reports and every declared artifact are kept in an Ankra-managed default vault for an organisation that has no ready vault of its own, under a key prefix of that organisation, so a first Ankra Pipelines run works before anybody registers a bucket. Backups, restore points, cloning a stack with its data and ankra migrate data never use it - those are organisation-scoped and are what a vault of your own is for. Register one and it takes precedence for pipeline artifacts too, from the next step onward; objects already written stay where they are.What a vault records
The access key ID and secret you provide are written to Ankra’s secret store and never returned by the API, the portal, or the CLI. Each cluster that backs up to the vault is also given them, in the Secret
backup-vault-credentials of its backup Stack and in a copy of the two keys in the namespace of each database it backs up. When that cluster writes its Stacks to a GitOps repository, the keys in those Secrets are sealed with the organisation’s SOPS key, or committed in plain text if the organisation has no SOPS key. Rotating keys means creating a new vault or re-verifying after updating the bucket policy.
Let Ankra create the bucket
The quickest path: pick one of your organisation’s provider credentials and a region, and Ankra creates the bucket, mints or stores the access keys, verifies the bucket and registers the vault. In the portal the vault shows Being made until that has finished, then Ready - or Failing with the excerpt of what the provider refused. The CLI shows the same states asprovisioning, ready and error.
Other credential kinds (OVH, AWS, GCP, Azure, Proxmox, Morpheus) cannot provision a bucket: register a bucket you own instead, below. For a bucket that is not for backups, see Object Storage Buckets.
- Portal
- CLI
1
Open Backups and storage
Go to Infrastructure → Backups and storage and click Add a backup vault.
2
Name it and let Ankra make the bucket
Enter a Name (lowercase letters, numbers and dashes; it is what people see when they pick where a cluster’s backups go). Under The bucket, choose Let Ankra make a bucket.
3
Pick the credential and region
Pick the Credential whose account the bucket is made in, and the Region. For UpCloud, type a Managed Object Storage region such as
europe-1; Ankra checks it against your account. For Hetzner, also paste the Access key and Secret key from the Cloud Console; they are stored encrypted and never shown again.4
Make the bucket
Click Make the bucket. The vault appears under Backup vaults marked Made by Ankra, with the badge Being made; the page refreshes on its own until it reads Ready. A Failing vault shows what the provider answered - a region your account cannot use, a bucket name someone else holds, a token without the right scope - and can be deleted and added again once that is fixed.
Ankra records the provider-side handle it created (the UpCloud service, the DigitalOcean key) on the vault, so it can clean them up later if you ask it to - see Deleting a vault.
Bring your own bucket
- Portal
- CLI
1
Open Backups and storage
Go to Infrastructure → Backups and storage and click Add a backup vault.
2
Describe your bucket
Enter a Name, and under The bucket choose Use your own bucket. Pick the Provider (or Another S3-compatible store), then fill in Endpoint, Region if the endpoint does not imply it, Bucket, Access key and Secret key. Turn on Path-style addresses for stores such as MinIO that need the bucket in the path instead of the host name.
3
Add and check
Click Add and check. Ankra checks the keys against the bucket at once. A vault that passes reads Ready. One that does not is still added: the dialog says “name was added, but Ankra cannot reach it” and shows What the check said, and its row offers Fix - see When verification fails.
Provider notes
When provisioning fails or stalls
A vault Ankra provisions shows Being made (provisioning) until the bucket exists and its keys verify. Two things can go wrong, and both are recoverable the same way.
It reads Failing with an excerpt. The excerpt is what the provider answered - a region your account cannot use, a bucket name someone else holds, a token without the right scope. When the run failed before it stored keys there is nothing to check again, and the API refuses a check. Delete the vault - tick Also delete the bucket and every backup in it, or pass --destroy-provider-resources, so anything the run got as far as creating goes with it - and provision again with the excerpt’s cause fixed.
It stays on Being made. A provider refusal that a retry cannot change is not tried again. A row still on Being made after a quarter of an hour is stuck rather than slow: delete it the same way and try again.
When verification fails
A Failing vault is still registered - nothing has to be redone from scratch - but the keys you gave it are never read back, so they cannot be edited in place. Click Fix on its row: the dialog shows What the last check said and offers Check again (the row’s options menu has Check it now too). The recovery depends on what the check said:
Check again re-runs the same check the create ran. When it passes, the dialog reads “name works again” and backups go there again from the next one.
Manage vaults
get, verify and delete accept a vault name or id, and list / get support -o json|yaml. verify on a vault that is still provisioning answers that it is still being provisioned rather than recording a failed check.
Deleting a vault
Deleting a vault removes Ankra’s record of it and the access keys it stored. By default the bucket is left exactly as it is - with every restore point in it - along with anything Ankra created for it, so a deletion can never lose data on its own. One exception, and it is deliberate: deleting a vault that is still provisioning always tears down the provider side, whether or not you ask for it. Such a vault has no restore points to lose, but the run may already have created a bucket or a provider resource - and once the record is gone nothing else can find them. For a vault Ankra provisioned, you can ask for the cloud side to be cleaned up in the same step. Ankra then empties and deletes the bucket and removes what it minted for the vault - the UpCloud Managed Object Storage service, the DigitalOcean Spaces key. Scaleway and Hetzner vaults use your own credential’s keys, which are never touched.- Portal
- CLI
On Infrastructure → Backups and storage, open the vault’s options menu and choose Delete…. For a vault Ankra made, tick Also delete the bucket and every backup in it; the box is unticked every time the dialog opens, and the confirm button becomes Delete the vault and its backups (otherwise it is Delete the vault). A vault on your own bucket shows no such box. Keep it closes the dialog.
Protect a stack
A vault is where restore points land; a stack’s backup policy is what puts them there. Protection is a property of the stack, not a separate object: it is stored as the stack’s ownbackup block, and the platform converges on it by installing the backup data plane on the cluster.
Look at what a backup would have to carry first:
-o json the reason is each asset’s attribution (with the owning member), and the separate list is unattributed_assets.
- Portal
- CLI
- Cluster file
1
Open the Stack's backups
Open Infrastructure → Clusters → <your cluster> → Backups. The Protection table lists every Stack on the cluster with its Protection, Detail and Next backup. Click the Stack’s name.The page becomes shop backups, with Backup policy, Restore points and Selected restore point.
2
Configure protection
Under Backup policy, click Configure protection. Choose the Backup vault, the Schedule (
hourly, daily, weekly, or a cron expression such as 0 3 * * *), and how many Daily copies, Weekly copies and Monthly copies to keep. Leave Include databases ticked; list volumes in Persistent volumes to include, one namespace/claim-name per line.3
Save policy
Type the Stack’s name into Type shop to confirm and click Save policy. Saving replaces the Stack’s current backup policy. The page reads Backup policy saved, and the Protection table shows when the Stack is next backed up.
protect takes:
Ankra takes the scheduled restore points itself, on the schedule the block names, through the same capture as Back up now - so every scheduled backup is a restore point you can list, restore and let retention expire. Nothing is scheduled inside the cluster for any engine: no Velero
Schedule, no CloudNativePG ScheduledBackup, no schedule entry inside a Percona cluster. A Percona cluster is captured into the backup storage its own spec already declares.
For a CloudNativePG cluster, protecting the stack writes two things into it, because CloudNativePG writes a backup wherever the Cluster itself says: the barman-cloud archiver goes into the member that declares the Cluster (the manifest body, or cluster.plugins in the cloudnative-pg/cluster chart’s values), and a stack member named ankra-backup-policy-<stack> holds the object store it archives into. Both are Ankra’s: unprotect removes them, and a clone or a profile capture leaves them out of the copy while the source stack keeps them. An archiver you configured yourself - your own object store, an in-tree spec.backup.barmanObjectStore, the chart’s own backups section - is left exactly as you wrote it, and Ankra reports that it cannot take restore points of that cluster into the vault: a restore point you take yourself is refused with the reason, and a scheduled backup is skipped with archiver_unavailable (as opposed to archiver_not_wired below, which means Ankra’s own archiver is missing and a protect or manual restore point puts it back).
Four behaviours worth knowing before you rely on it:
- Databases are in by default; volumes are not. Protecting a stack does not start copying every claim in its namespaces. Name the volumes you want with
--include-pvcorselection.persistent_volume_claims. Excluding databases from a stack that runs them needs an explicit acknowledgement, and leaves the stack carrying a standing warning. - An omitted block preserves protection. A cluster file that does not mention
backupleaves the stored policy alone, so an older CLI or a partial file cannot unprotect a stack. Removing protection is an explicitenabled: falseorankra cluster stacks unprotect, and the write warns about what stops being covered. - Protecting a CloudNativePG cluster restarts its instances once. Ankra adds the barman-cloud archiver to the
Cluster, and CloudNativePG reconciles that by rolling the instances one at a time - a brief primary failover. Onlyprotect,unprotectand a restore point you take yourself do this; a scheduled backup never changes a database. If a stack’s clusters lost the archiver (anankra cluster applythat replaced the stack from a file without it, say), scheduled backups are skipped witharchiver_not_wireduntil you protect the stack again or take a restore point by hand, and the restore point’s answer says the instances restart. - A CloudNativePG restore point needs the stack protected, and lands in the stack’s own vault. The cluster archives into the object store its policy wired, so a restore point of it cannot be written anywhere else:
restore-points createon an unprotected stack, or into another vault, is refused with the reason, and nothing is created. A restore point taken in the same minute as the first protect can fail while the instances restart; the next one succeeds. - Retention counts the schedule’s restore points, not the ones you take by hand.
daily=7keeps the newest scheduled restore point of each of the last seven days. A restore point you take yourself - Back up now, orrestore-points create- is kept for the policy’s longest period (seven days underdaily=7), and the safety restore point Ankra takes before an in-place restore is kept for seven days, so a restore stays undoable for a week. Neither one replaces that day’s scheduled restore point, and taking another does not delete the one before it.
Take a restore point now
- Portal
- CLI
On the Stack’s backups page, click Take restore point, add a Note (optional) to find it by later, type the Stack’s name to confirm, and click Take restore point. Your apps keep running. The page reads “Taking a restore point of shop. It shows in Restore points below when it is ready.” The new row’s Status reads Being taken, then Complete.
--vault, then the stack’s own policy, then the organisation’s single ready vault. With more than one ready vault and nothing naming which, the request is refused rather than chosen for.
For a Velero restore point, choose the vault configured on the cluster’s backup stack. If the storage location differs from the requested vault, the run fails before creating the Velero backup.
The selection resolves the same way - the request’s own --include-pvc / --exclude-databases, then the stack’s stored selection, then the default of databases in and volumes only where named. A request that carried no selection never widens to everything.
See what a restore point holds
In the portal, the Stack’s Restore points table shows each one’s Status, Started by and Left out. Click a row: Selected restore point lists what it carries (Kind, How it was copied) and Left out of this restore point, or “Nothing. Everything Ankra found in the stack was copied.” From the CLI:get adds the manifest, every asset in it, and the run that produced it. list pages with --cursor; --vault narrows to one vault, and ankra backup restore-points list takes --cluster and --stack.
An id prefix is resolved against the stack’s 200 most recent restore points, so it is checked for ambiguity only within that window. The full id is what addresses an older restore point with certainty.
Restore a stack in place
- Portal
- CLI
On the Stack’s backups page, click a Complete restore point, then Restore in place under Selected restore point. Type the Stack’s name into Type shop to confirm and click Replace the data. The page reads “Restoring shop. The stack’s apps stop while their data is replaced, then start again.”
- Take a safety restore point before removing anything, and refuse the restore if it cannot be taken.
- Scale down the workloads in the stack that own the data being restored.
- Remove the volumes the restore point replaces, so the restored data is not written beside the old data.
- Restore the restore point’s assets onto the cluster through the backup data plane.
- Scale the workloads back up over the restored data.
--yes skips the typed confirmation for scripts. --force is needed when the stack’s data has changed since the restore point was taken: the refusal compares the restore point’s assets against the stack’s current inventory, and an inventory whose live database scan did not run counts as drift, because “we could not read it” is not “it is unchanged”. --force does not reach the ownership check that runs before it: a restore point carrying a volume the stack’s live inventory lists as not owned by this stack, or one in a namespace the stack no longer uses, is refused outright, see Troubleshooting. A volume deleted since the restore point was taken is not refused by this check; the drift check names it.
A restore is also refused against a cluster that is offline or stopped - the sequence destroys before it replaces, so it must not start against a cluster nobody can reach - and against a restore point that is not complete.
Clone a Stack with its data
Clone with data on the Stack’s backups page copies the Stack and its data to another cluster as a draft. Pick the Target cluster and the Data source - Take a new restore point now or Use the newest complete restore point - and click Clone with data. The source Stack keeps running and is not changed, and captured application workloads stay stopped until you deploy the reviewed target draft after the data copy. Temporary recovery Pods and the database recovery engine may run to recover the selected data. Clone Stacks covers cloning in full, including from the CLI.Unprotect a stack
In the portal, click Stop future backups under Backup policy, type the Stack’s name and click Stop backups; the page reads Future backups stopped. From the CLI:--yes skips it. Turning protection off stops future backups and removes the rendered schedules on the next render. Every restore point already taken is kept and stays restorable - removing protection is a decision about the future, not about the past. The ankra-backup system stack is not removed either, because those restore points are restored through it.
Back up an application’s data
An application’s owner does not need to open its Stack. Applications → <your application> → Data → Backups shows, for the environment chosen at the top of the page, the Protection posture, the Destination vault, the Data assets and the Last backup, then the Restore points with their restore-test evidence (Inspect evidence). The Destination names the vault and where its bucket is, such as demo-backups, Hetzner object storage in Helsinki, Finland. For a bucket you brought, the line under the vault says Ankra has no record of where it is. When Ankra should know and cannot say, that line starts with Place not known. Where the cluster is lists the three answers and what each means. Back up now takes a restore point of the Stack the environment runs in: the dialog names the Stack, the cluster and the vault, and its Back up now button sends it. The card then reads “Backup requested. It appears in the list below when it finishes.” When the Stack runs a database that is not set up for backups yet, the dialog says so: Ankra sets it up first, which restarts the database one instance at a time. Taking a backup needsbackups.operate; without it the card says “You need permission to run backups and restores. Ask an admin.”
Follow a run
Every capture and every restore is a run, and a run has a step for each thing it does. Runs are organisation-scoped, so one listing covers every cluster.retry answers with the new run, not the old one: the failed row will never move again. list takes --stack, --cursor and --limit, and every command supports -o json|yaml.
Backup posture
Posture is the answer to “is this data protected, and if not, why”. The portal shows it on the cluster’s Backups page - the Protection summary, Last restore point, Next scheduled backup, and the Protection table with a row per Stack (it flags “Backups are overdue” and “Scheduled captures are not running”) - and on each application’s Data → Backups. From the CLI,ankra cluster backups status reads a cluster’s posture.
An organisation with no vault at all gets a call to action rather than a report that everything is exposed, and a posture that has not loaded renders nothing rather than flashing a verdict it does not have.
Troubleshooting
Diagnose all of this with the Ankra CLI, not
kubectl. The backup data plane is a stack Ankra owns and reconciles, so a change made against the cluster directly is reverted on the next render.Permissions
Organisation admins hold all three. A member with only
backups.read sees the vault list read-only, and Backups and storage says “Your role can look but not change. Owners and admins add and remove vaults and buckets.” On a cluster’s Backups page, the buttons for actions your role cannot take are not shown. Both gates - the organisation’s backups feature and the permission - are checked in that order, so an organisation without the feature answers the same way whatever the caller may do.
Not enabled yet?
Backups are on for every organisation unless the backups feature has been switched off for yours. While it is off:- Infrastructure → Backups and storage says “Backups are not turned on for your organisation” instead of listing vaults, and each cluster’s menu offers Set up backups in place of Backups, on a page that explains what backups do and how to turn them on.
ankra backup …,ankra cluster stacks protect|unprotect|restore-points|data …exit non-zero withBackups are not enabled for this organisation.followed by what to do about it. A real permission refusal on the same commands keeps its own wording, so the two are never confused.- The API answers
403with that same text on every backups route, browser and token alike - a personal access token cannot reach the lane in an organisation where it is dark. - A
backupblock in a cluster file is rejected on apply with the same sentence.
- The right organisation is selected. The CLI acts on the current organisation -
ankra org currentshows which, andankra org switch <name>changes it. - The account is in the organisation that was enabled. Enablement is per organisation, not per user.
Command reference
The generated CLI reference carries every flag and default of these families:The reference is regenerated from the CLI source on each release;
ankra <command> --help is the authority on a flag for the version you run.Next steps
Backup vault concepts
How vaults, policies, restore points, runs and posture fit together.
The backup block
Every field and default of a stack’s backup policy, in the cluster file.
Clone stacks between clusters
Clone a stack’s configuration today - data follows via restore points.
Move a Docker deployment in
ankra migrate carries databases through the same vault.