Intermediate 12 minDaily plan

Qdrant backup and restore: backing up a collection

BestLLMfor — Qdrant collection — Backup and restore

A Qdrant backup restore relies on snapshots: an archive of a collection that you can download, store elsewhere, and load back into an instance. The procedure below follows the official snapshot documentation (accessed 30/10/2026) with one simple rule: always back up what you already have before restoring, restore into a test collection first, then compare points and payloads before you touch production. QuelLLM has not run this restore end to end: the commands come from the documentation and must be validated on your version.

By Mohamed Meguedmi·Update 2026-12-02·Tested on Windows, macOS, and Linux

#Why use snapshots rather than copying the folder

In a local RAG setup, the Qdrant collection often represents hours of indexing: chunking documents, computing embeddings, enriching payloads. Losing it means recomputing everything, sometimes with an embedding model that is no longer exactly the same, which changes the vectors. Regular backups prevent this situation.

Hot-copying the storage directory (/qdrant/storage in the Docker image) is tempting, but there is no guarantee that a copy made during writes is consistent. Snapshots are the mechanism Qdrant provides: the server itself produces a .snapshot archive of the collection, exposed through its REST API, which you can then download or restore from a URL, a local file, or a direct upload.

Collection snapshot
Archive of a single collection: data, indexes, and configuration. This is what this guide covers.
Full snapshot (full storage)
Archive of all collections on the instance, created with POST /snapshots. The documentation restricts it to single-node deployments.
Shard snapshot
Finer granularity, mainly useful in a cluster. Outside the scope of this guide.

#What a collection snapshot contains, and what it doesn't

The complete kit for building your own AI assistant.

Benefit from our experience and a guided path to build your local assistant and use your AI every day.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days

A collection snapshot includes the points (IDs, vectors, payloads), the indexes, and the collection configuration (vector size and distance, quantization, payload indexes). When restored, it recreates a collection that should behave like the original did at capture time. Anything written after the snapshot was created is missing: a snapshot is a point-in-time picture, not continuous replication.

!
Aliases excluded, version constrained
Aliases are not part of a collection snapshot: if your application queries an alias (for example, docs pointing to docs_v3), you will need to recreate it manually after the restore. As for versions, the documentation states that a snapshot can only be restored on the same minor version of Qdrant, with an equal or higher patch number (example from the docs: a snapshot taken on v1.4.1 can be restored on v1.4.x with x ≥ 1). Record the server version alongside each file.

Practical consequence: a snapshot isn't a universal archive. If you upgrade to a new minor version, keep the old Docker image available as long as you depend on the old snapshots, and take a new backup right after the upgrade. You can get the server version with a simple GET on the API root, which returns a version field.


#Prerequisites

Reachable Qdrant instance
REST API on port 6333 by default (http://localhost:6333 locally). If an API key is configured, every request must include the api-key header.
Tools
curl et jq sur la machine d'administration. Les mêmes opérations existent dans les clients officiels (Python, TypeScript, Rust, Go…).
Disk space
Creating a snapshot writes an archive the size of the collection, on top of the existing data. Check the free space on the volume containing the snapshots directory before starting the operation.
Snapshots volume
In Docker, the default directory is /qdrant/snapshots inside the container (storage.snapshots_path setting, or the QDRANT__STORAGE__SNAPSHOTS_PATH variable). Without a mounted volume, the archives disappear along with the container.
A test collection
An unused collection name (for example docs_restore_test) to validate the restore without overwriting existing data.

For a manually launched container, mount two separate volumes, one for storage and one for snapshots, so you can copy the archives from the host:

Terminal
docker run -d --name qdrant -p 6333:6333 -p 6334:6334 \
  -v "$(pwd)/qdrant_storage:/qdrant/storage" \
  -v "$(pwd)/qdrant_snapshots:/qdrant/snapshots" \
  qdrant/qdrant:vX.Y.Z   # remplacez par la version exacte que vous utilisez

# Variables reprises dans la suite du guide
export QDRANT_URL="http://localhost:6333"
export QDRANT_API_KEY="votre-cle"   # laissez vide si aucune clé n'est configurée
export COLL="docs"

# Version du serveur, à noter avec chaque snapshot
curl -s "$QDRANT_URL/" -H "api-key: $QDRANT_API_KEY" | jq -r .version

Pin a specific image version rather than latest: that is what will let you restore a snapshot onto an instance with the same minor version, as the documentation requires.


#Step 1: Back up the Qdrant collection (backup)

You create a snapshot with POST /collections/{collection}/snapshots. By default, the call waits for the operation to finish and returns the name, date, and size of the created file; recent versions add a checksum field (SHA-256) that you can use to verify the integrity of the downloaded file.

Terminal
# 1. Créer le snapshot
curl -s -X POST "$QDRANT_URL/collections/$COLL/snapshots" \
  -H "api-key: $QDRANT_API_KEY" | tee snapshot-create.json | jq .

SNAP=$(jq -r .result.name snapshot-create.json)
echo "$SNAP"

# 2. Lister les snapshots existants de la collection
curl -s "$QDRANT_URL/collections/$COLL/snapshots" \
  -H "api-key: $QDRANT_API_KEY" | jq .

# 3. Télécharger l'archive hors du serveur
curl -s "$QDRANT_URL/collections/$COLL/snapshots/$SNAP" \
  -H "api-key: $QDRANT_API_KEY" --output "$SNAP"

# 4. Comparer l'empreinte locale avec le champ checksum, s'il est présent
sha256sum "$SNAP"
jq -r '.result.checksum // "absent de la réponse"' snapshot-create.json
  1. 01
    Record the baseline state
    Before you even create the snapshot, write down the exact point count (see step 3) and the server version. These are your reference values for comparison after the restore.
  2. 02
    Get the archive off the machine
    A snapshot that stays on the same disk as the collection doesn't protect you against losing that disk. Copy the file to another medium or to remote storage; Qdrant's configuration also lets you write snapshots to S3-compatible storage (the snapshots_config section of the documentation).
  3. 03
    Name and date it
    Keep alongside the file: collection name, Qdrant version, date, point count, and the embedding model used. Without that last one, restored vectors can become unusable if the application has switched models in the meantime.
  4. 04
    Clean up
    Archives pile up in the snapshots directory. Once they've been copied elsewhere and verified, delete the old ones with DELETE /collections/{collection}/snapshots/{nom}.

The same operation in Python, with the official qdrant-client:

snapshot.py
from qdrant_client import QdrantClient

client = QdrantClient(url="http://localhost:6333", api_key="votre-cle")

snap = client.create_snapshot(collection_name="docs")
print(snap.name, snap.creation_time, snap.size)

for s in client.list_snapshots(collection_name="docs"):
    print(s.name, s.size)

#Step 2: Restore to a test collection (restore)

The rule of this guide: never restore directly onto the live collection. Restoring into a collection that already exists replaces its contents; if the snapshot is bad (wrong date, wrong collection, truncated file), the mistake can't be undone without another backup. So you start with a new collection, which the restore will create.

!
Back up before restoring
Even for a test, first create a fresh snapshot of the production collection (step 1). If you end up restoring over it, that file is what will let you go back to the previous state.

Two documented methods. The first, PUT /collections/{collection}/snapshots/recover, takes a location field: an HTTP(S) URL reachable by the Qdrant server, or a file:// path as seen from inside the container. The second, POST /collections/{collection}/snapshots/upload, sends the file from your machine as a multipart upload.

Terminal
TEST="docs_restore_test"

# Méthode A : le fichier est déjà dans le répertoire des snapshots du serveur
curl -s -X PUT "$QDRANT_URL/collections/$TEST/snapshots/recover" \
  -H "api-key: $QDRANT_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"location\": \"file:///qdrant/snapshots/$COLL/$SNAP\", \"priority\": \"snapshot\"}" | jq .

# Méthode B : envoi du fichier téléchargé depuis la machine d'administration
curl -s -X POST "$QDRANT_URL/collections/$TEST/snapshots/upload?priority=snapshot" \
  -H "api-key: $QDRANT_API_KEY" \
  -H "Content-Type: multipart/form-data" \
  -F "snapshot=@./$SNAP" | jq .

The file:// path above assumes the default directory layout, where each collection has its own subfolder in the snapshots directory; check this in your volume (ls qdrant_snapshots/) before running the command. For method A with a URL, the Qdrant server downloads the file, so the URL must be reachable from the container, not just from your workstation. The request body also accepts a checksum field; if you provide it, the server verifies the archive's hash before restoring.

priority: snapshot
Snapshot data takes precedence over existing data. This is the logical choice for an intentional restore.
priority: replica
Default value: existing data takes precedence. In a cluster, the collection can be resynchronized from other replicas, which can cancel out the intended effect of the restore.
priority: no_sync
Restore without additional synchronization, for controlled shard operations. Avoid it if you don't know why you would need it.

There is also restore at startup, for a single-node instance: the binary accepts --snapshot path:collection_name, and --force-snapshot to overwrite an existing collection. It requires changing the container's launch command; the API calls above are easier to control.


#Step 3: check the restored points and payloads

A status: ok response means the operation finished, not that the restored collection matches what you expect. Three simple checks let you confirm it, by comparing the test collection with the baseline you recorded in step 1 (or with the original collection if it still exists).

Terminal
# 1. Configuration et état : statut, taille/distance des vecteurs, index de payload
for c in "$COLL" "$TEST"; do
  echo "== $c"
  curl -s "$QDRANT_URL/collections/$c" -H "api-key: $QDRANT_API_KEY" \
    | jq '{status: .result.status, vectors: .result.config.params.vectors, payload_schema: .result.payload_schema}'
done

# 2. Nombre exact de points (exact: true, sinon le chiffre peut être approximatif)
for c in "$COLL" "$TEST"; do
  curl -s -X POST "$QDRANT_URL/collections/$c/points/count" \
    -H "api-key: $QDRANT_API_KEY" -H "Content-Type: application/json" \
    -d '{"exact": true}' | jq -r ".result.count | \"$c: \(.) points\""
done

# 3. Échantillon de payloads, sans les vecteurs pour garder une sortie lisible
curl -s -X POST "$QDRANT_URL/collections/$TEST/points/scroll" \
  -H "api-key: $QDRANT_API_KEY" -H "Content-Type: application/json" \
  -d '{"limit": 3, "with_payload": true, "with_vector": false}' | jq '.result.points'
  1. 01
    Compare the configuration
    Same vector dimensions and distance (Cosine, Dot, Euclid…), same named vectors if applicable, same indexes in payload_schema. A missing payload index doesn't break anything right away, but it slows down or prevents some filters.
  2. 02
    Compare the point count
    The exact count of the test collection must equal the one recorded at snapshot time. If production has received writes since then, the difference must match those writes, not an unexplained gap.
  3. 03
    Check a few known points
    Pick two or three IDs whose content you know (one recent document, one older one) and retrieve them from both collections with POST /collections/{collection}/points and the ids field. The payloads (source, page, chunk text, dates) must be identical.
  4. 04
    Run a real search
    Run the same vector query, with the same embedding model, on both collections. The top results should match. This is the test that catches an embedding model that changed between backup and restore.

For the ID check, the request looks like this (replace the ids with your own, integers or UUIDs depending on your collection):

Terminal
curl -s -X POST "$QDRANT_URL/collections/$TEST/points" \
  -H "api-key: $QDRANT_API_KEY" -H "Content-Type: application/json" \
  -d '{"ids": [1, 42], "with_payload": true, "with_vector": false}' | jq '.result'
i
What this check does not prove
These checks cover a sample. They catch gross errors (wrong file, empty collection, different configuration), not isolated corruption of a single point. For a critical corpus, export the IDs and payloads of both collections via paginated scroll and compare them in full.

#Step 4: put the restored collection back into service

Once the test collection is validated, you have two options. The safest, if your application uses an alias, is to point the alias at the restored collection: the original collection stays intact, and rolling back is just a matter of switching the alias back. Alias operations are sent in a single call, which the Qdrant documentation describes as an atomic change.

Terminal
# Voir les alias actuels (ils ne sont pas dans le snapshot)
curl -s "$QDRANT_URL/aliases" -H "api-key: $QDRANT_API_KEY" | jq .

# Faire pointer l'alias "docs_live" vers la collection restaurée
curl -s -X POST "$QDRANT_URL/collections/aliases" \
  -H "api-key: $QDRANT_API_KEY" -H "Content-Type: application/json" \
  -d "{\"actions\": [
        {\"delete_alias\": {\"alias_name\": \"docs_live\"}},
        {\"create_alias\": {\"collection_name\": \"$TEST\", \"alias_name\": \"docs_live\"}}
      ]}" | jq .

If the application queries the collection name directly, you need to restore under that name: rerun the step 2 command with $COLL as the target collection and priority snapshot, after confirming that a recent snapshot of the current state actually exists off the server. Plan for a window with no writes: anything inserted between the backup and the restore would be lost. Then rerun the step 3 checks on the production collection, and recreate any aliases that pointed to it if they've disappeared.

Delete the test collection only once production has been verified and you no longer need it: it takes up the same disk space and memory as the original.


#Qdrant in a cluster: backup and restore limitations

Everything above applies to a single-node instance, the most common setup for self-hosting. In distributed mode, the documentation specifies that a collection snapshot contains only the data present on the node that created it. A collection sharded across multiple nodes therefore requires one snapshot per node, and a node-by-node restore.

One snapshot per node
Send the create request to each node, download each archive, and record which node it came from.
Restore priority
With the default replica priority, existing data on other replicas may take precedence over the snapshot. Read the relevant section of the documentation before proceeding.
Full snapshots
POST /snapshots, which captures all collections and their aliases, is documented for single-node deployments. Don't rely on it in a cluster.
Topologie
The number of shards and the replication factor are part of the configuration; restoring to a cluster with a different topology requires specific preparation, which is beyond the scope of this guide.

If you run a cluster, treat this guide as an introduction: Qdrant's Snapshots page and the distributed mode documentation are authoritative, and a full restore drill on an identical test cluster is essential before you rely on it.


#Troubleshooting

401 or 403
Missing api-key header or wrong key. If a read-only key is configured, it can't create or restore a snapshot.
Restore rejected due to version
The snapshot comes from a different minor version. Temporarily launch an instance of the original version, restore the snapshot there, then migrate the data following Qdrant's release notes.
File not found via file://
The path is resolved inside the container, not on the host. Check the volume mounted at /qdrant/snapshots and the collection's subfolder.
Recover by URL fails
The Qdrant server can't reach the URL (Docker network, firewall, authentication). Use an upload from your machine instead.
Disk space error
Creating and restoring both write temporary files as large as the collection. Free up space or move the snapshots directory to another volume.
Degraded search after restore
Identical points and payloads but different results: check that the application uses the same embedding model and the same dimension as during the original indexing.
Application can no longer find the collection
Alias not recreated. Compare the output of GET /aliases before and after the restore.
→
Automate without losing control
A scheduled script that creates the snapshot, downloads it, compares the checksum, and deletes the server-side archive covers the backup. The restore, on the other hand, is worth rehearsing by hand in a test collection at regular intervals: it's the only way to know that your files actually restore on the version you're running.

#Go further

Primary source: the Snapshots page of the Qdrant documentation (https://qdrant.tech/documentation/snapshots/), accessed 30/10/2026. Parameter names, the version compatibility rule, and cluster behavior may change from one version to the next, so reread it for the version you run before any real restore. No search volume could be measured for the query “qdrant backup restore” (DataForSEO data unavailable on 30/10/2026).

Qdrant: the vector database for local RAG
The companion guide for installing Qdrant, creating a collection, and filtering by metadata: /guide/qdrant-base-vectorielle-guide
Restore Open WebUI and Ollama after a failure
The same backup and restore approach applied to the interface and the models: /guide/restaurer-open-webui-ollama-sauvegarde
Deploy an LLM in production with Docker Compose
A Ollama + Open WebUI + Qdrant stack with persistent volumes, to be complemented by the snapshots described here: /guide/deployer-llm-docker-compose-production
Did this guide help you?

Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.