DBENGINE / litestream.yml
triflix's picture
Upload 19 files
5d1a8d2 verified
raw
history blame contribute delete
480 Bytes
# Litestream config β€” syncs SQLite to local file replica
# HF Buckets use huggingface_hub Python API, NOT S3 protocol directly.
# So we use a HYBRID approach: Litestream β†’ local file replica + Python β†’ HF Bucket
dbs:
- path: /tmp/data/app.db
replicas:
# LOCAL file-based replica (Litestream's built-in)
- type: file
path: /tmp/data/backups
retention: 168h # Keep 7 days
snapshot-interval: 1h # Full snapshot every hour