# Litestream configuration for SQLite replication
# Supports S3, Cloudflare R2, MinIO, etc.

dbs:
  - path: /app/data/app.db
    replicas:
      # Option 1: AWS S3
      # - url: s3://your-bucket/beanflows/app.db
      #   access-key-id: ${AWS_ACCESS_KEY_ID}
      #   secret-access-key: ${AWS_SECRET_ACCESS_KEY}
      #   region: us-east-1
      
      # Option 2: Cloudflare R2
      # - url: s3://your-bucket/beanflows/app.db
      #   access-key-id: ${R2_ACCESS_KEY_ID}
      #   secret-access-key: ${R2_SECRET_ACCESS_KEY}
      #   endpoint: https://${R2_ACCOUNT_ID}.r2.cloudflarestorage.com
      
      # Option 3: Local file backup (for development)
      - path: /app/data/backups
        retention: 24h
        snapshot-interval: 1h
