Encrypted Offsite Backups: Key Ownership
An encrypted backup is useful only if an authorized recovery team can independently find the repository, access its storage and unlock it. Separate storage credentials from the repository password, keep a tested recovery path outside the source server, and account for the full storage bill.
Make the data owner responsible for a recoverable encryption password and a separate route to the storage account. A copy of both secrets on the original server is convenient for automation, but it is not a recovery plan when that server is lost or compromised. Test the whole path from another machine before relying on it.

Map two independent forms of access
An offsite repository has at least two gates. Storage credentials authorize operations against the object-storage service; the restic repository password unlocks its encrypted contents. Someone who can download the repository but lacks its password cannot ordinarily read the backup, while someone with the password but no route to the repository cannot retrieve it. Both secrets together grant access, so protect their combination as sensitive production data.
The restic repository documentation, viewed 29 November 2026, explains that a repository can have multiple access keys and that loss of the password prevents access. This is not a password reset service: retaining a usable key or password is an operational responsibility. Record the repository location and compatible restic version separately from the secret values so an authorized person knows what to recover.
Write down which data is in scope: database exports, uploaded files, application configuration, certificates, deployment artifacts and any external dependencies. Identify what is deliberately excluded. A complete set of credentials cannot recover material never captured in the backup, and encryption does not by itself establish database consistency.
Assign custody and least privilege
Give the customer or designated data owner a controlled, independently accessible copy of the repository password. Use an approved secret manager or equivalent protected custody, with recovery procedures that do not depend on the machine being recovered. Name a primary and an alternate custodian; document how they authenticate, who approves retrieval and how access is logged. Avoid putting either secret in tickets, source control, screenshots or shell command history.
For the automated backup identity, grant only the operations and bucket access the chosen workflow actually requires. Cloudflare R2 token documentation, viewed the same day, describes bucket-scoped Object Read and Object Read and Write permissions, and notes that the secret access key is shown when created. Read-and-write is not an append-only guarantee: determine whether the credentials can also delete or overwrite objects, and test any separate protection against destructive actions.
| Decision | Practical choice | Why it matters |
|---|---|---|
| Data owner | Name customer or accountable organization | Someone can authorize recovery and custody |
| Repository password | Independent protected recovery copy | Storage credentials alone do not unlock it |
| Storage token | Bucket-scoped access appropriate to task | Reduces exposure of unrelated buckets |
| Recovery identity | Separate read-oriented credential where feasible | Restore need not use the backup writer's identity |
| Backup writer | Restricted automation identity | Limits reach if the source server is compromised |
| Repository location | Document endpoint, bucket and path | A password without a repository is insufficient |
| Custodian loss | Named alternate and tested break-glass process | Recovery is not dependent on one person |
| Rotation | Add and verify replacement before removing old access | Avoids locking out valid backups |
| Recovery test | Restore onto an isolated machine | Proves access outside the original server |
| Evidence | Log date, scope, result and follow-up | Demonstrates what was actually recovered |
Separate credentials improve accountability, not necessarily isolation from a root compromise of the backup host. A job that must unlock and write the repository needs access to both kinds of secret at runtime. An attacker with that same access may obtain them, so add a separately administered copy or other independently controlled safeguards where the threat model requires it.
Compare storage prices without confusing units
The chart compares published storage-only list-rate figures, not the cost of a functioning backup service. Cloudflare R2 Standard lists $0.015 per GB-month; Backblaze B2 starts at $6.95 per TB per month; Wasabi pay as you go lists $7.99 per TB-month in North America; and an AWS cost example states $0.023 per GB-month for S3 Standard in US East (N. Virginia). All sources were viewed 29 November 2026.
Published storage list rates per vendor TB-month
USD list rates; vendor TB units differ; storage only
- Cloudflare R2 Standard, 1,024 GB$15.36
- Backblaze B2, starting ratefrom $6.95
- Wasabi pay as you go, North America$7.99
- AWS S3 Standard, N. Virginia, 1,024 GB$23.55
View chart data
| Item | USD per vendor TB-month | Note |
|---|---|---|
| Cloudflare R2 Standard, 1,024 GB | $15.36 | |
| Backblaze B2, starting rate | from $6.95 | |
| Wasabi pay as you go, North America | $7.99 | |
| AWS S3 Standard, N. Virginia, 1,024 GB | $23.55 |
These are the vendors' advertised TB-month rates or per-GB rates scaled by 1,024 to their binary TB convention, not a precise equal-byte comparison across vendors. Wasabi explicitly uses 1,024 GB per TB, and AWS's example treats its priced GB as GiB. Cloudflare and Backblaze's published labels should be checked against their current billing definitions before comparing equal byte volumes. Free allowances, taxes, discounts, requests and data movement are excluded; these figures are not quotes.
Wasabi lists a 1 TB active-storage monthly minimum and a 90-day minimum duration on pay as you go; deleting or replacing objects early can leave additional charges. Cloudflare lists separate request classes and a Standard free tier. Backblaze describes a monthly free egress allowance and conditions for excess traffic. AWS lists storage, requests and transfers as distinct cost components on its S3 pricing page. Run a workload-specific estimate that includes the expected restoration path, not merely the cheapest capacity rate.
Rotate without breaking recovery
Inventory each repository, its storage identity, current recovery custodians and authorized automation before changing credentials. For storage access, create a new appropriately scoped identity, update the writer securely, run a backup, and verify that the recovery identity can still read the resulting snapshot. Revoke the old storage credential only after the replacement path and monitoring work. An expired token is a different failure from a lost encryption password; track and alert on both.
Restic permits multiple repository keys. Add and test a replacement according to the documented procedure, verify it opens the intended repository from a separate recovery environment, then retire the old key only after the owner approves. Replacing an access password should not be casually described as re-encrypting all historical backup data or undoing a prior exposure. If an attacker obtained the underlying repository and a usable password, consult the incident plan and consider migration to a new repository with independent keys.
Keep the alternate custody route current after staff changes, account ownership changes and provider migrations. Record the authorized procedure rather than embedding the actual secret in the runbook. If an account recovery mechanism depends on a mailbox or identity provider hosted on the same failed server, establish another approved route before the next incident.
Exercise a server-independent recovery
Prepare a disposable isolated machine with outbound access only where needed. Obtain the location and a read-oriented storage credential through the documented recovery process, then obtain the repository password through its separate custody path. Identify the intended snapshot by host, paths and timestamp rather than assuming the repository-wide latest snapshot is the right application.
Use the documented restic restore procedure to restore into an empty test target. By default, restore can overwrite files at its destination; do not point it at a live site. Verify a database restore and representative files together, boot the application with isolated service credentials, and confirm no real email, payments or outbound jobs can fire.
Record the selected snapshot and timestamp, operator, start and finish times, missing pieces, access problems and next action. A repository-open check is a useful first step, but it does not prove that the application will run. Review whether a compromised operator or provider account could delete both the primary repository and its recovery copy, and separate administration accordingly.
Turn custody into an actionable runbook
Give the recovery team a short, dated inventory: application owner, repository endpoint, bucket, repository path, expected snapshot group, supported tool version and the separate locations of storage credentials and repository password. The inventory should describe how to request each secret, not contain either value. Record who can authorize emergency access when the primary custodian is unavailable, and check that the alternate is still employed and can use the recovery channel.
Practice a handover with an operator who did not set up the backups. Have that person identify the correct repository, obtain approval, list snapshots and explain which snapshot belongs to the application. An ambiguous bucket name or an inaccessible account recovery email is a real finding, even if the routine backup job is healthy. Correct the inventory and repeat the handover without borrowing credentials from the original server.
Keep evidence useful but restrained: record an access approval reference, a timestamp and the result, not passwords or secret access keys. If a credential is accidentally exposed, revoke the affected storage token and assess the encryption password separately. Check whether logs, shared terminals or copied runbooks also received the secret, and follow the incident process before declaring the problem resolved.
For a full exercise, follow the website restore drill; for snapshot lifecycle decisions, see backup retention trade-offs. Sora Panel is not released yet; read how it works.
Frequently asked questions
Is the storage access key the same as the encryption password?
No. Storage credentials authorize access to the service; the restic repository password unlocks the repository. Losing either can block a recovery.
Can a backup server compromise expose both secrets?
Yes. The running backup process may need access to both, so independent custody and a separately protected copy remain important.
Does changing a repository password erase prior exposure?
No. Removing a compromised access key prevents future use of that key but does not undo copies already obtained. Assess the incident and whether a new repository is needed.
Does the cheapest storage rate determine the cheapest restore?
No. Retrieval, operations, egress, minimum duration and the actual transfer volume can materially change the bill.
Sources
- restic repository preparation (viewed 2026-11-29)
- Cloudflare R2 authentication (viewed 2026-11-29)
- Cloudflare R2 pricing (viewed 2026-11-29)
- Backblaze B2 pricing (viewed 2026-11-29)
- Wasabi pricing FAQ (viewed 2026-11-29)
- AWS pricing example (viewed 2026-11-29)
- AWS S3 pricing (viewed 2026-11-29)
- restic restore (viewed 2026-11-29)
Sora Panel is not released yet. Read how it works on the homepage.