LiteFS Export to Local

With LiteFS cloud, I don’t think there is a remote instance.

How would you use the export from URL command? I am looking to export from LiteFS to my local to keep my development DB updated.

litefs export -name my.db -url http://myotherhost:20202 /path/to/db

The 20202 port looks similar to the consul URL.
http://${FLY_ALLOC_ID}.vm.${FLY_APP_NAME}.internal:20202

Thanks. I am hoping this has a somewhat static path, the FLY_ALLOC_ID I am guessing isn’t.

I know I can fly ssh into a machine, and export, and then fly sftp get to then retrieve it. I am trying to see if this allows me to make it easier, and possible script it.

1 Like

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