| Crates.io | walsync |
| lib.rs | walsync |
| version | 0.1.1 |
| created_at | 2026-01-11 00:32:53.928295+00 |
| updated_at | 2026-01-11 00:54:06.456896+00 |
| description | Lightweight SQLite WAL sync to S3/Tigris |
| homepage | |
| repository | https://github.com/russellromney/walsync |
| max_upload_size | |
| id | 2034991 |
| size | 132,676 |
Lightweight SQLite WAL sync to S3/Tigris.
Like Litestream but:
cargo install walsync
# Watch databases and sync to S3
walsync watch db1.db db2.db -b s3://my-bucket/backups
# With Tigris endpoint
walsync watch app.db -b s3://my-bucket --endpoint https://fly.storage.tigris.dev
# Take immediate snapshot
walsync snapshot app.db -b s3://my-bucket
# List backed up databases
walsync list -b s3://my-bucket
# Restore database
walsync restore mydb -o restored.db -b s3://my-bucket
Local: S3:
app.db /app/snapshots/20240110120000.db
app.db-wal ────────────────► /app/wal/00000001-20240110120001234.wal
(file watcher) /app/wal/00000001-20240110120005678.wal
/app/state.json
walsync watchWatch databases and continuously sync WAL changes.
walsync watch <DATABASES>... -b <BUCKET> [OPTIONS]
Options:
--snapshot-interval <SECS> Snapshot interval (default: 3600)
--endpoint <URL> S3 endpoint (for Tigris/MinIO)
walsync snapshotTake an immediate snapshot.
walsync snapshot <DATABASE> -b <BUCKET>
walsync restoreRestore a database from S3.
walsync restore <NAME> -o <OUTPUT> -b <BUCKET>
Options:
--point-in-time <ISO8601> Restore to specific time
walsync listList backed up databases.
walsync list -b <BUCKET>
AWS_ACCESS_KEY_ID - AWS/Tigris access keyAWS_SECRET_ACCESS_KEY - AWS/Tigris secret keyAWS_ENDPOINT_URL_S3 - S3 endpoint (for Tigris/MinIO)AWS_REGION - AWS region (default: us-east-1)s3://bucket/prefix/
├── dbname/
│ ├── snapshots/
│ │ ├── 20240110120000.db
│ │ └── 20240110130000.db
│ ├── wal/
│ │ ├── 00000001-20240110120001234.wal
│ │ ├── 00000001-20240110120005678.wal
│ │ └── ...
│ └── state.json
└── otherdb/
└── ...
Perfect for backing up tenant SQLite databases:
# In your tenement deployment
walsync watch \
/var/lib/ourfam/romneys/app.db \
/var/lib/ourfam/smiths/app.db \
/var/lib/ourfam/jones/app.db \
-b s3://backups/ourfam \
--endpoint https://fly.storage.tigris.dev
Apache 2.0