Vector store backups and exports
Short answer: Yes. The embeddings and the stored chunks in a vector database carry your source data, and a backup copies all of it. The copy usually loses the access model that protected the live store, so anyone who can read the backup can read the documents.
Most RAG reviews look at the live retrieval path. The copies around it get less attention, even though they often hold the same text with fewer controls.
What does a vector store actually hold?
Short answer: More than numbers. Most stores keep the chunk text as payload next to each vector, plus metadata such as titles, paths, tenant IDs and permission labels. The payload is plain text, so a dump of the store is close to a dump of the indexed documents.
Teams store the text because the retriever has to pass it to the model. Some designs keep only an ID and fetch text from another system at query time. That reduces what a store copy reveals, but the metadata can still name customers, projects and file paths.
Are embeddings without text safe to share?
Short answer: Treat them as sensitive. Published research has shown that embeddings can be inverted to approximate the original text. A vector export without payload still carries a lot of the meaning of the source.
How much text an attacker can recover depends on the embedding model, the chunk length and what else they know. That is hard to bound in advance. The practical rule is simple. Give vectors the same classification as the documents they came from.
Where do copies of the index live?
Short answer: In more places than the team usually lists. Snapshots, replicas, exports, dev and staging copies, analytics dumps, logs and caches can all hold chunk text or vectors. Each one needs an owner, a reader list and a test.
| Copy | Who can read it | Risk | Control | Test |
|---|---|---|---|---|
| Snapshots and backups | Storage admins, backup service accounts | Full corpus readable outside the store's access rules | Separate bucket, encryption with a key you control, narrow restore rights | List every identity with read or restore access and compare with the source data owners |
| Replicas | Cluster admins, other regions | Data in a region or account you did not plan for | Replica list in the data inventory, same access policy as primary | Query each replica with a restricted identity |
| Exports and migrations | Engineers running the job | Full dump left on a laptop or shared drive | Export only through a logged job, expiry on export files | Search shared storage for export file names |
| Dev and staging copies | Developers, contractors, test tools | Production text in an environment with weaker access | Synthetic or masked data, or the same access rules as production | Plant a canary chunk in production and look for it in staging |
| Analytics dumps | Data team, BI tools | Chunks or queries joined with other datasets | Exclude payload text, aggregate before export | Check dump schemas for payload and metadata fields |
| Logs and traces | Operations, observability vendors | Retrieved chunks stored with each request | Masking, short retention, access matched to source data | Search logs for the canary text |
| Caches | Application services | Answers or chunks served across tenants or kept after deletion | Cache keys scoped by tenant and role, expiry tied to deletion | Delete a document and query the cache for it |
The LLM logging and privacy guide covers traces in more detail. Secrets that reach any of these copies are covered in secrets in the RAG index.
What happens to deleted data in backups?
Short answer: It stays there until the backup expires. A document deleted at the source can remain in old snapshots, replicas and exports for as long as their retention allows. Deletion requests and erasure obligations are usually handled through retention windows plus a re-index that drops the record.
Write down the full path. The source document is removed, the index sync deletes its chunks and vectors, and caches expire. Backups older than the deletion keep the data until their retention window ends. If one of those backups is ever restored, the deleted chunks come back unless the restore process replays deletions or re-indexes from current sources.
Questions to answer for each copy:
- How long is it kept, and who decided that?
- Does a restore replay deletions made after the snapshot was taken?
- Can a single record be removed from it, or only the whole copy?
- Who confirms that a deletion reached the index, the caches and the traces?
Your privacy or legal team decides what retention is acceptable. The engineering job is to make the actual behavior visible and testable.
Who should hold the encryption keys?
Short answer: Your organization, for the copies that hold the full corpus. Encryption at rest with a provider-managed key protects against lost disks. It does little against an admin or service account that can read the bucket.
Use a key you manage for backups and exports, and keep the right to decrypt separate from the right to copy files. Then an engineer who can move a snapshot cannot read it. Log key use and review who holds decrypt rights. If you use a managed vector database, check in its own documentation what encryption options it offers for backups, and record what you found.
Do tenant filters survive a restore?
Short answer: Only if you test it. A restore can bring back vectors and text while dropping or corrupting the tenant IDs and ACL metadata that retrieval filters depend on. A store that answers queries after a restore can still leak across tenants.
A restore test should do more than check that the service starts. Restore a recent snapshot into an isolated environment. Run the same cross-tenant and cross-role queries you use in normal testing. Confirm that every chunk still has its tenant and permission fields, that filters return nothing outside the caller's rights, and that documents deleted after the snapshot are handled the way your process says. The method for the retrieval checks is in cross-tenant retrieval.
Schema changes deserve the same test. A migration that renames a metadata field can turn a mandatory filter into a filter that matches nothing, or everything.
Checklist
- Every copy of the index listed with owner, readers and retention
- Vectors classified the same as the documents they came from
- Backups and exports encrypted with a key your organization controls
- Decrypt rights separate from copy and restore rights
- Dev and staging use synthetic or masked data, or production access rules
- Logs, traces and caches masked or scoped by tenant, with short retention
- Deletion path documented from source to index, caches and backups
- Restore process replays deletions or re-indexes from current sources
- Restore test checks tenant filters and ACL metadata, run on a schedule
- Canary chunk searched for in every copy after each change
Backups also come up in AI security questionnaires. The answers are easier to give when this list is already filled in.
Next: Threat modeling a RAG pipeline · AI security risks · OWASP LLM Top 10 2026 · What an AI security review report includes
To have backups, exports and restore paths checked as part of a review, see the AI Security Review.