A powerful and flexible CLI tool to migrate data between Qdrant instances.
Project description
QdrantSync
QdrantSync is a powerful and flexible CLI tool designed to seamlessly migrate collections and data points between Qdrant instances. It ensures efficient and reliable synchronization while maintaining data integrity and minimizing downtime.
Features
- Data Migration: Transfer collections and data points from a source Qdrant instance to a destination with ease.
- Customizable Options:
- Specify API keys and timeouts for secure and efficient data transfer.
- Add prefixes to collection names for organized migrations.
- Control replication and write consistency factors for destination collections.
- Use thresholds to balance between approximate and exact counts for large datasets.
- Incremental Migration: Supports marking and tracking migrated data to resume or refresh migrations without duplication.
- Batch Processing: Handles large-scale migrations with scroll-based pagination, customizable batch sizes, and optional delays to avoid server overload.
- Progress Monitoring: Includes real-time progress tracking with detailed output for a smooth migration experience.
- Error Handling: Ensures safe operations with options like proceeding only if collections exist in the destination.
Use Cases
- Migrate Qdrant data during infrastructure upgrades or cloud migrations.
- Synchronize data between staging and production environments.
- Back up collections to alternative Qdrant clusters.
Getting Started
Requirements
- Python 3.7 or higher
- Access to Qdrant instances (source and destination)
Installation
(A) From PyPI (once available)
pip install QdrantSync
qdrantsync --help
Local Development / Editable Install
If you’re testing or contributing before it’s published on PyPI:
- Clone this repository:
git clone https://github.com/your-username/qdrantsync.git cd qdrantsync
- Install in editable mode:
pip install -e .
- Now you can run:
qdrantsync --help
Usage
The basic command to migrate data between two Qdrant instances is:
qdrantsync \
--source-url <source_instance_url> \
--destination-url <destination_instance_url> \
--migration-id <unique_migration_id>
You can mix and match other options like --collection-prefix, --batch-delay, --replication-factor, etc. for tailored migrations. For more details on available flags, use qdrantsync --help.
Contribute
Contributions are welcome! Feel free to fork the repository, open an issue, or submit a pull request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qdrantsync-0.1.0.tar.gz.
File metadata
- Download URL: qdrantsync-0.1.0.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9892b872309a9b6bc3dc65edd948f1959962fae86a853fad21350af606ce3640
|
|
| MD5 |
d06989340984d000087d3416aa72cf20
|
|
| BLAKE2b-256 |
dfcfd6d56f122d9e0453ddf9866e0886c5a297cdf1e62cbfc3ba9aded5ede6db
|
File details
Details for the file QdrantSync-0.1.0-py3-none-any.whl.
File metadata
- Download URL: QdrantSync-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0d605d79c4a65902a394f40265dc60ea5f370bb3e8687a718c669ef363b7b78
|
|
| MD5 |
069b6f7d93298492726e8dd34974fd5b
|
|
| BLAKE2b-256 |
92ad20f120aa1caed7f3e45c3207fdf8ced0689f2e3595d2fa3a821faa440cd1
|