Skip to content

Instantly share code, notes, and snippets.

View ashwin47's full-sized avatar

Ashwin M ashwin47

View GitHub Profile
#!/bin/bash
# litestream-pitr-repro.sh
# Reproduces: `restore -timestamp` hangs indefinitely (regression in v0.5.1)
#
# The bug triggers with longer backup history (100+ LTX files).
# This script creates ~60 LTX files which may or may not trigger the bug.
# For reliable reproduction, use a database with longer history.
#
# Usage:
# export LITESTREAM_ACCESS_KEY_ID="your-access-key"