Documentation Index
Fetch the complete documentation index at: https://mintlify.com/qdrant/qdrant/llms.txt
Use this file to discover all available pages before exploring further.
Backup Strategies
Qdrant provides multiple approaches to backing up your data:- Full snapshots - Complete backup of all collections and system state
- Collection snapshots - Individual collection backups
- Shard snapshots - Granular backups at the shard level
Full Snapshots
Full snapshots capture the entire Qdrant instance including all collections and collection aliases.Creating a Full Snapshot
- REST API
- Python
Asynchronous Creation
For large datasets, create snapshots asynchronously:Listing Full Snapshots
Downloading Full Snapshots
Snapshot Storage Configuration
Configure snapshot storage location:config/config.yaml
Collection Snapshots
Create backups for individual collections.Creating a Collection Snapshot
- REST API
- Python
Listing Collection Snapshots
Downloading Collection Snapshots
Deleting Collection Snapshots
Restore Procedures
Restoring from Full Snapshot
Restore a complete Qdrant instance from a full snapshot.Using Command Line
Restore during startup:Restore Process
The restore process:- Unpacks the snapshot to a temporary directory
- Reads the snapshot configuration mapping
- Restores each collection from its snapshot file
- Recreates collection aliases
- Removes temporary files
Restoring from Collection Snapshot
Restore individual collections while Qdrant is running.Upload and Recover
- REST API
- Python
Recover from URL
Restore from a remote snapshot:Checksum Verification
Verify snapshot integrity during recovery:Recovery Priority
Control snapshot recovery priority:snapshot- Prefer using the snapshot for recoveryreplica- Prefer using existing replicas
Data Consistency
Write-Ahead Log (WAL)
Qdrant uses WAL to ensure data consistency:config/config.yaml
- wal_capacity_mb: Size of each WAL segment
- wal_segments_ahead: Number of segments to pre-allocate
Snapshot Consistency
Snapshots are consistent at the time of creation:- Collection snapshots: Point-in-time consistency per collection
- Full snapshots: Consistent across all collections at snapshot time
- Shard snapshots: Consistent at shard level
Replication for High Availability
Combine snapshots with replication:config/config.yaml
- Data is replicated across multiple nodes
- Writes are confirmed by multiple replicas
- Snapshots can be taken from any replica
Backup Best Practices
Regular Schedule
Automate snapshot creation on a regular schedule using cron or similar tools.
Off-Site Storage
Store snapshots in a different location or cloud storage for disaster recovery.
Test Restores
Regularly test your restore procedures to ensure backups are valid and complete.
Monitor Space
Ensure sufficient disk space in snapshot directories, especially for large collections.
Automated Backup Script
Example backup automation:Listener Nodes
Dedicated backup nodes can be configured as listeners:config/config.yaml
- Receive all updates from the cluster
- Do not serve search or read queries
- Ideal for dedicated backup operations
- Reduce load on primary query-serving nodes
Storage Path Configuration
Configure storage paths:config/config.yaml
Ensure the temp directory has sufficient space for snapshot creation operations.
Troubleshooting
Snapshot Creation Fails
Check:- Disk space in
snapshots_path - Permissions on snapshot directory
- Collection state (must be accessible)
Restore Fails
Verify:- Snapshot file is not corrupted (use checksum)
- Sufficient disk space in
storage_path - Qdrant version compatibility
- No permission issues
Slow Snapshot Operations
Optimize by:- Using
wait=falsefor asynchronous operations - Scheduling snapshots during low-traffic periods
- Increasing
temp_pathto faster storage (SSD) - Enabling compression for remote transfers