Preserve ingestion data across rebuilds
This commit is contained in:
@@ -64,6 +64,21 @@ docker compose exec qdrant sh -c "tar czf /backups/qdrant-backup-$(date +%Y%m%d)
|
||||
docker run --rm -v local-context7_data:/data -v $(pwd)/backups:/backups qdrant/qdrant:latest tar czf /backups/qdrant-backup-$(date +%Y%m%d).tar.gz /qdrant/storage
|
||||
```
|
||||
|
||||
### Rebuild Without Losing Sources or Ingestion
|
||||
|
||||
Normal image rebuilds preserve Git source definitions, cloned repositories,
|
||||
uploaded documents, SQLite metadata, Qdrant vectors, and the embedding model
|
||||
cache because they are bind-mounted from the host.
|
||||
|
||||
```bash
|
||||
git pull
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
Do not delete `data/`, `docs/`, or `docs_sources.yaml`. Do not run the reset
|
||||
commands below unless you intentionally want to erase the indexed data and
|
||||
source configuration.
|
||||
|
||||
### Safe Reset Command
|
||||
|
||||
To reset both SQLite and Qdrant cleanly:
|
||||
@@ -428,4 +443,4 @@ For Docker-based deployment, consider using an authentication middleware or a de
|
||||
- Chunk overlap configuration via environment variables
|
||||
- Batch index endpoint improvements
|
||||
- Metrics/logging aggregation (e.g., Prometheus + Grafana)
|
||||
- Plugin system for additional data sources
|
||||
- Plugin system for additional data sources
|
||||
|
||||
Reference in New Issue
Block a user