|
1
|
# Litestream replication configuration |
|
2
|
# |
|
3
|
# Continuously replicates all .fossil files in /data/repos/ to S3. |
|
4
|
# Each .fossil file is a SQLite database — Litestream streams WAL |
|
5
|
# changes to S3 for continuous backup and point-in-time recovery. |
|
6
|
# |
|
7
|
# New .fossil files are picked up automatically when using the |
|
8
|
# "dbs" glob pattern below. |
|
9
|
|
|
10
|
dbs: |
|
11
|
- path: /data/repos/*.fossil |
|
12
|
replicas: |
|
13
|
- type: s3 |
|
14
|
bucket: ${FOSSILREPO_S3_BUCKET} |
|
15
|
endpoint: ${FOSSILREPO_S3_ENDPOINT} |
|
16
|
region: ${FOSSILREPO_S3_REGION} |
|
17
|
access-key-id: ${AWS_ACCESS_KEY_ID} |
|
18
|
secret-access-key: ${AWS_SECRET_ACCESS_KEY} |
|
19
|
|