Skip to content

Instantly share code, notes, and snippets.

@zpeters
Created February 13, 2024 14:42
Show Gist options
  • Save zpeters/ecf742fe4a4538c434fd866c49fcaa8e to your computer and use it in GitHub Desktop.
Save zpeters/ecf742fe4a4538c434fd866c49fcaa8e to your computer and use it in GitHub Desktop.
Start script runner for a docker container with litestream
#!/bin/sh
litestream restore -if-replica-exists -config /root/litestream.yml /root/database.db;
litestream replicate -config /root/litestream.yml &
/root/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment