Treat the backup key as its own asset. Keep one copy where authorised staff can reach it without the backup server, and a second offline copy held by a different person, and never store either on the server or share that holds the backups. Then prove it: restore a small backup on a clean machine using only those copies. If that works, your keys are both protected and recoverable. If it fails, you have found the problem before an incident did.
What can go wrong, and the one test that matters
Encrypted backups can fail you in two opposite ways. If the only copy of the key sits on the server being backed up, a dead server takes the key with it and the backups become unreadable. If a copy sits next to the backups, in the same share or in a document on the backup server, anyone who gets that far gets the data and the key together. The NCSC puts the first risk bluntly: if a key is lost, everything encrypted under it is unrecoverable. In its ransomware-resistant on-premises backup principles it also points out that an attacker can find it easier to delete or modify a key than to attack the data itself.
So the assessment is not 'do we have a key?'. It is three questions. Can we find the key if the backup server and the office are gone? Could someone who has taken over the backup server or a domain admin account also reach the key? And has anybody actually restored from a backup using only the stored key? Most small businesses can answer the first loosely, the second with a shrug and the third with silence. This guide gets you to three honest answers.
The examples use a fictional ten-person company with a file server backed up to the cloud and a second copy held by a Veeam backup server. Your products will differ. The method does not.
Before you begin
You need very little, but you do need the right people in the room.
- Administrator access to each backup product, or the person who has it.
- A list of what is backed up and where it goes, including cloud backups, a NAS, tape or an appliance.
- Someone with the authority to name who may hold recovery keys. For a small business that is usually an owner or director.
- A clean test machine or an isolated virtual machine for the restore test at the end. It must not be the production backup server.
- A password manager with a business or shared vault, plus somewhere physically secure for a sealed offline copy, such as a safe.
Work out what each backup depends on
Different products protect backups differently, and some vendors offer no recovery route at all. Do not assume one product's safety net exists in another. Build a short register first, with no secrets in it, so you know what you are protecting.
- List every backup product and destination: server agents, a NAS, cloud storage, any Microsoft 365 backup service, tape or removable drives.
- For each one, find the encryption setting in the product's job, repository or agent settings and note what actually unlocks the data. Typically it is a password or passphrase someone typed, a key file, a keyset held by a separate management server, a key held in a key management service (KMS) or a key managed entirely by the provider.
- Write down where the only copy of that secret lives today. Common honest answers are 'in the head of whoever set it up', 'in a text file on the backup server' and 'we are not sure'. Each of those is a finding, not a failure.
- Record the details in a register that holds locations and names, never the secrets themselves. Keep the register somewhere your recovery team can open without the backup server.
Backup set: Office file server to Azure Backup (example entry) Product: Azure Backup agent (MARS) Protected by: passphrase set in the agent console Operational copy: business password manager, vault for IT recovery Offline copy: sealed envelope in the office safe, held by the managing director Vendor recovery route: none for a lost passphrase Last restore test: date, who did it, result - Mark any product where the vendor cannot help if the key is lost. Microsoft states that it cannot retrieve Azure Backup agent data if the passphrase is lost, so for that product your copy is the only copy.
Choose copies that fail independently
The aim is two recovery copies that do not share a failure with each other or with the backups. In our judgement, a workable pattern for a small business is one searchable copy and one offline copy.
The searchable copy lives in a business password manager vault limited to a few named people. Make sure you can get into the password manager itself during an outage, which means it should not depend on the server or domain you are trying to rebuild. The offline copy is printed or written down and sealed in a safe or similar. The NCSC suggests an out-of-band key backup, such as a master key on paper in human-friendly text or as a QR code, as part of robust key management for backups.
Whatever you pick, a few rules keep it from becoming a liability:
- Do not keep the key on the backup server, in the same share as the backups, in email or in a support ticket.
- Give recovery keys their own access list. The NCSC advises that backup systems use admin accounts and credentials separate from your everyday ones, so a compromised admin login should not also open the key store.
- Name at least two people who can fetch the key, so one holiday or one resignation does not end your recovery plan.
- Protect exported key files as carefully as the originals. The NCSC's key-management guidance says backups of keys should have at least as much protection as the keys themselves.
- If you change a password, passphrase or key, record the change and keep the previous version until the last backup made under it has expired. Whether older backups remain tied to the older secret depends on the product, so check, and let the restore test settle it.
Example: saving an Azure Backup agent passphrase in Key Vault
The Microsoft Azure Recovery Services (MARS) agent encrypts files and folders with a passphrase you set at registration. Microsoft is explicit that if the passphrase is lost, it cannot retrieve the data in the Recovery Services vault. Since agent version 2.0.9262.0 the passphrase can be saved to Azure Key Vault as a secret, in Azure public regions. This is Microsoft's own route, so if you use the agent it is a sensible second copy, alongside the offline one.
You need rights to configure the Recovery Services vault and the Key Vault, and the ability to change the agent's properties on the server. Changing the passphrase is a real change: the server needs a working connection to Azure, and if the Recovery Services vault's security features are enabled you will be asked for a security PIN.
- Check the agent version on the server and update it first if it is older than 2.0.9262.0.
- In the Azure portal, open your Key Vault and confirm soft-delete and purge protection are enabled. Soft-delete keeps a deleted secret recoverable for a period, and purge protection stops it being permanently erased early. Microsoft requires both for this feature. Read Microsoft's soft-delete overview before enabling purge protection, as it changes how deletion behaves.
- Open your Recovery Services vault, go to Identity, select the System assigned tab, set Status to On and select Save. This managed identity is the vault's own account in Azure, which lets it write to the Key Vault. Once the feature is in use, do not turn the identity off, even briefly.
- In the Key Vault, check under Settings > Access Configuration which permission model is in use. For role-based access, open Access control (IAM), add a role assignment for the vault's managed identity with a role that has Set permission on Secret. Key Vault Secrets Officer works, though it carries more rights than needed, so a custom role with only that permission is tidier. For access policies, create a policy that gives the vault Set under Secret Permissions.
- On the server, open the MARS console and select Change Properties > Change Passphrase. Paste the Key Vault URI copied from the Key Vault overview in the portal, then select OK. If you are prompted for a security PIN, generate one in the Recovery Services vault under Settings > Properties > Security PIN > Generate. It is valid for five minutes. Keep a copy of the new passphrase in your offline copy too.
- Check it worked. The console should offer to copy the identifier of the secret and should not have saved the passphrase to a local file. In the Key Vault, Secrets should now list one named AzBackup, then the machine name, then the vault name. You can check both settings and the secret names from a machine with the Azure CLI signed in. These commands only read information. They show settings and names, not secret values, and listing secrets needs a role that permits it. Replace YOUR_KEY_VAULT_NAME with your vault's name.
az keyvault show --name YOUR_KEY_VAULT_NAME --query "properties.{softDelete:enableSoftDelete, purgeProtection:enablePurgeProtection}" --output jsonaz keyvault secret list --vault-name YOUR_KEY_VAULT_NAME --query "[].name" --output tsv
Example: Veeam Enterprise Manager keys as a safety net
Veeam Backup & Replication offers an optional route for lost backup passwords called password loss protection. It relies on Veeam Backup Enterprise Manager holding a keyset: a matched public and private key pair. The public key protects the storage keys on connected backup servers and the private key can decrypt them if the password is lost. The documentation says this needs a paid licence, with Enterprise edition or above for older socket licensing and inclusion in Veeam Universal License, so check your own entitlement against Veeam's feature comparison before relying on it.
The catch is that you have swapped one single point of failure for another. The private key lives on the Enterprise Manager server only. If that installation is lost, so is the ability to use this route, which is why Veeam tells you to export keysets and keep them safe. And whoever can process a key-restore request in Enterprise Manager can in effect unlock your backups, so in our judgement that console deserves its own account with multi-factor authentication, separate from everyday admin logins. Backup servers that rely on this route must connect to the same Enterprise Manager instance.
- Confirm that every backup server you want covered connects to one Enterprise Manager instance and that your licence includes the feature.
- In Enterprise Manager, open the Configuration view and select Settings. On the Key Management tab, tick Enable encryption password loss protection and select Save.
- Export the current keyset using the export procedure in Veeam's documentation. Treat the exported file as being as sensitive as the backups it can unlock. Store it in the two places you chose earlier, not on the Enterprise Manager server.
- Test the route on a small, non-critical encrypted backup. On the backup server start the key restore (Veeam's wizard steps are Create Request for Key Restore, Process Request in Veeam Backup Enterprise Manager, then Complete Key Restore Process). Success means you can restore that backup without typing its original password.
Prove you can recover
Everything above is theory until someone restores a backup from a standing start. The NCSC advises regular monitoring and testing of backups for this reason, and the key is part of the backup. Ask someone other than the person who built the backups to do this, because that person knows too many unwritten facts.
- Gather only what a stranger would have: the register, the stored key copy and the vendor's documentation. Do not use the original admin's laptop, saved passwords or the backup server's configuration.
- Choose a small, representative encrypted backup. If you have changed a password, passphrase or key since the backups began, pick one from before the change as well.
- On a clean machine or isolated virtual machine, install the restore tooling and connect it to the backup storage. The exact steps depend on the product, so follow its recovery documentation.
- Restore to a new, empty location. Never restore over live data during a test.
- Open a few of the restored files and check they are complete. Success is a successful decrypt using only the stored key, with no help from the original server.
- Record the date, who did it, which copy they used and anything that was awkward. Fix the register and any unclear storage instructions straight away.
If it did not work
Start with the least destructive explanation before changing any settings, and contact the vendor before overwriting anything you cannot undo.
- The stored key is rejected. Check for pasted whitespace, look-alike characters or a stale version. For the MARS agent, Microsoft documents that passphrases with characters above ASCII 127 can be stored incorrectly, with a fix in agent 2.0.9190.0 and later and a Validate prompt in the console. Regenerate it using allowed characters on the original server.
- You have the key but only for the wrong period. Look through earlier versions of the secret or earlier copies of the key. In Azure Key Vault each passphrase change adds a new version of the secret.
- The passphrase is lost but the original server still works. For the MARS agent you can regenerate it through Change properties and the Encryption tab, provided the machine is still registered with the Recovery Services vault and the backup is configured. Existing backups may need checking afterwards, so repeat the restore test.
- The key and the original server are both gone. Contact the vendor's support, as some products have a recovery route and some do not. Microsoft says it cannot retrieve Azure Backup agent data without the passphrase. If no route exists, treat those backups as unrecoverable and fix the key storage before the next set is created.
- Enterprise Manager is lost. Restore it, or import a previously exported keyset if you have one. Without either, Veeam password loss protection cannot decrypt backups that depended on that keyset.
Technical terms explained
- keyset
- A matched public and private key pair. In Veeam Enterprise Manager the public key protects backup storage keys and the private key can decrypt them.
- KMS
- Key management service. A system that creates, stores and controls access to encryption keys so that they are not left in ordinary files.
- managed identity
- An account that Azure gives to a service, such as a Recovery Services vault, so it can access other Azure resources without anyone storing a password for it.
- passphrase
- A long password, often a phrase, used to unlock encrypted data. Backup tools use it to derive the key that encrypts and decrypts your backups.
- purge protection
- A Key Vault setting that stops a deleted vault or secret from being permanently erased before its retention period ends.
- soft-delete
- A safety setting that keeps a deleted item recoverable for a period instead of removing it immediately.
Sources and further reading
- NCSC: Choosing and configuring a KMS for secure key management in the cloud
- NCSC: Principles for ransomware-resistant on-premises backups
- Microsoft Learn: Save and manage MARS agent passphrase securely in Azure Key Vault
- Microsoft Learn: Manage and monitor MARS Agent backups (re-generate and validate passphrase)
- Veeam Help Center: Managing Encryption Keys (Enterprise Manager)
- Veeam Help Center: Enterprise Manager Keys