Epic Stack & litestream

I would like to integrate litestream with the epic-stack for db backup, but I’m unsure how to proceed with that.

Currently, I’m getting following error:

ERROR: cannot exec: sync cmd: cannot run command: exec: "litestream": executable file not found in $PATH

Any help would be appreciated.

Here is an isolated app with the changes I’ve made.

I’ve followed following doc: Backing up your LiteFS cluster · Fly Docs

Hi… Remember that that part of the docs site habitually leaves a lot of things implicit, :dragon:. (It doesn’t mention that you need to install the litestream binary as an additional step in your Dockerfile, for example.)

Also definitely do heed its warning:

This approach only works if you are running a static lease on your cluster.

(Your litefs.yml still has type: 'consul'—if I’m reading the intended branch.)

Have you seen the newly announced, Consul-friendly alternative?

https://community.fly.io/t/litefs-backup-drop-in-replacement-for-litefs-cloud/22267

It looks promising, although I haven’t delved into it myself yet…

1 Like

Added litefs, sqlite

Ah, you’re right. I thought I was on a static lease and didn’t realize that using Consul is an “either-or” situation.

I think my last option is to use litefs-backup then

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.