Skip to main content

Backups

RAG-DocBot ships an opinionated backup/restore runbook and a single entry-point script that backs up Postgres, Qdrant, and branding assets in one shot.

tip

Always prefer ./backup.sh over running pg_dump / Qdrant snapshot calls by hand. The script handles compose service discovery, Qdrant collection enumeration, manifest generation, and archive packaging consistently.


What gets backed up​

backup.sh covers all stateful components managed by the deployment:

ComponentSourceOutput inside backups/<timestamp>/
PostgreSQLpg_dump against the compose postgres servicepostgres.sql.gz
QdrantSnapshot API for every discovered collectionqdrant/<collection>--<snapshot>.snapshot
Branding assets./branding/ directorybranding.tar.gz
Run metadataComponent versions + git SHAMANIFEST.txt

Local GGUF model files under models/ are intentionally not included — they are large, immutable, and should be managed out-of-band (e.g. mirrored from your model registry or object store).


Running a backup​

From the repository root of your RAG-DocBot deployment:

./backup.sh