Skip to main content
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.
Watch an app and its PostgreSQL database move from Ankra Cloud to a Proxmox cluster: a restore point, a clone with data, then the same rows on both sides.

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 as provisioning, 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.
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

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.
Ankra refuses a vault delete while a restore is running from an import in the vault, and while the vault holds the etcd state a stopped cluster needs to start again. A vault that Stacks are protected to, or that holds restore points, is deleted without a question. Check before deleting one.
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.
This destroys data. Every restore point in the bucket is gone, and nothing restores from that vault afterwards. Ankra refuses it for a bucket you registered yourself: that one is yours, and only you should delete it.
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.
The teardown runs as a background job: the vault disappears from the list immediately and the bucket is removed shortly after. Each of its steps is written to be repeatable - a bucket already gone, a service already deleted and keys already removed all count as done - but nothing retries it automatically. If the teardown fails, the vault comes back on the list with Not removed and a Finish removing action, because what is left at the provider can go on costing you. Delete again… in that dialog runs the teardown again; otherwise remove the resources in the provider console.

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 own backup 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:
That lists the stack’s data assets - standalone persistent volume claims, and the databases an operator runs - under the names the selection uses. Only data the stack owns is listed as the stack’s, and each asset says why: the member that owns it, or a namespace no other stack, add-on, manifest or application uses, in which the data carries no Helm, Argo CD or Ankra application label pointing elsewhere. A member owns an object when a manifest or application declares it or the workload that mounts it, when the Helm release that installed it is one of the stack’s add-ons in that namespace, when it carries the ownership label of one of the stack’s applications, or when an owner reference or an operator’s instance label links it to an object a member declares. Everything else the sweep of the stack’s namespaces finds - another stack’s database, or an orphan claim, in a namespace other stacks also use - is listed separately as Not owned by this stack. It is never captured or restored as this stack’s, and the requested total does not count it. When the live database-operator read did not run, a database can be missing from the list or listed as not owned because its ownership could not be read; the command says so. From CLI v0.24.0 the list names the owning member, or the namespace reason, in its Owned via column and prints the separate list; older versions print only the stack’s own assets. With -o json the reason is each asset’s attribution (with the owning member), and the separate list is unattributed_assets.
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.
Unticking Include databases asks you to tick “I accept that these backups will exclude database contents” as well.
What 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-pvc or selection.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 backup leaves the stored policy alone, so an older CLI or a partial file cannot unprotect a stack. Removing protection is an explicit enabled: false or ankra 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. Only protect, unprotect and a restore point you take yourself do this; a scheduled backup never changes a database. If a stack’s clusters lost the archiver (an ankra cluster apply that replaced the stack from a file without it, say), scheduled backups are skipped with archiver_not_wired until 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 create on 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=7 keeps the newest scheduled restore point of each of the last seven days. A restore point you take yourself - Back up now, or restore-points create - is kept for the policy’s longest period (seven days under daily=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.
Per-add-on overrides ride the add-on’s settings, for the case where one add-on in a protected stack should be captured differently (or not at all):

Take a restore point now

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.
The vault is resolved in order: --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.
Read the Not carried list before you rely on a restore point. Every listing and every detail read prints it, next to what the restore point does contain - a volume outside the selection, a data engine no adapter covers, an external service that lives outside the cluster - each with the reason and the remedy. An omission nobody read is the same as an omission nobody was told about.
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

This destroys before it replaces. The restore removes the stack’s current volumes before it writes the restore point’s, so anything written since the restore point was taken is gone from the cluster. Before it removes anything, Ankra takes a safety copy of the stack’s current data as a new restore point, and refuses the restore if that copy cannot be taken; a stack that holds nothing a restore point can carry gets no safety copy. Confirmation is typing the stack’s own name, not y/N.
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.”
Before stopping workloads, the agent checks that every claim has a completed filesystem capture bound to the selected restore point and storage location. Missing or unreadable recovery metadata stops the restore before claims are removed. Recovery selects only the proven archived Pods and claims, even if the current workload labels have changed. Annotation-only Restic backups, native or CSI snapshots (including mixed backups), and selected Pods with additional or unbound volume captures are refused until their recovery has its own per-claim qualification. The platform accepts the restore and answers with the sequence it will follow, which the CLI prints before any of it runs:
  1. Take a safety restore point before removing anything, and refuse the restore if it cannot be taken.
  2. Scale down the workloads in the stack that own the data being restored.
  3. Remove the volumes the restore point replaces, so the restored data is not written beside the old data.
  4. Restore the restore point’s assets onto the cluster through the backup data plane.
  5. 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.
Only volumes captured by Velero can be restored in place. A restore point carrying anything else, such as a CloudNativePG or Percona database, is refused with Restoring this restore point in place is not supported yet: it carries a database this platform cannot yet recreate in place. The ordinary restore path would report success over unchanged data, which is worse than refusing - see Restoring in place. The database of a managed PostgreSQL service is restored into a new service instead: see Restore a managed PostgreSQL service.
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:
Confirmation is the typed stack name again; --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 needs backups.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 with Backups 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 403 with 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 backup block in a cluster file is rejected on apply with the same sentence.
Two things to check before asking for it to be enabled:
  1. The right organisation is selected. The CLI acts on the current organisation - ankra org current shows which, and ankra org switch <name> changes it.
  2. The account is in the organisation that was enabled. Enablement is per organisation, not per user.
Then contact support to have the backups feature enabled for the organisation.

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.