Comments (6)
Hello, first of all, thank you for a great project. I wanted to try litestream
with MinIO. Unfortunately it is not that simple as one need to specify endpoint (otherwise go-aws will try to create it from bucket and region) and also path style has to be forced. Otherwise bucket will be passed as prefix of the hostname, which will not work with MinIO.
Changes have been based on https://docs.min.io/docs/how-to-use-aws-sdk-for-go-with-minio-server.html
I am attaching patch and configuration file, which I have ended with, as an inspiration (happy to open PR, if you want):
- 0001-Hack-in-MinIO-support.patch.txt
- litestream.yml.txt
- pushed to fork for a simpler diffing -- https://github.com/bobek/litestream/tree/minio
from litestream.
I added support and wrote up some brief docs in the PR for running Litestream with MinIO, B2, & GCS: #66
The code was a bit more complicated as I wanted to support easily running these using the replica URL instead of requiring folks to set up a configuration file. Feedback is welcome if you get a chance to try it. I'll post guides for each backend once the v0.3.3
is cut.
from litestream.
+1 - Thanks Ben !! Same on Backblaze, no way of explicitly calling out region, as such:
litestream replicate db.sqlite3 s3://s3.us-west-000.backblazeb2.com/octo-litestream
Errors with:
litestream v0.3.2
initialized db: /Users/ben/db.sqlite3
replicating to: name="s3" type="s3" bucket="s3.us-west-000.backblazeb2.com" path="octo-litestream" region="us-west1"
/Users/ben/db.sqlite3(s3): monitor error: RequestError: send request failed
caused by: Get "https://s3.us-west1.amazonaws.com/s3.us-west-000.backblazeb2.com?delimiter=%2F&prefix=octo-litestream%2Fgenerations%2F": dial tcp: lookup s3.us-west1.amazonaws.com: no such host
from litestream.
I can confirm that the minio patch works for me too with an external https minio server. Very nice and just what I needed.
from litestream.
Thanks for all the testing everyone. I'm trying to wrap up Windows support (#7) first and then I'll get this functionality working and tested and merged in.
from litestream.
I added my observations in #66
from litestream.
Related Issues (20)
- Glob support HOT 1
- Suggestion: Add `foreign_keys=ON` to recommendations under Tips section of docs
- Allow configuring metrics collection HOT 1
- Manual checkpoint before snapshot loses WAL position
- add garage to docs and web
- Restore operation leaves behind tmp shm/wal files HOT 2
- [Maybe Bug] Can't list generations of rclone s3 server HOT 2
- Verbose parameter removed in version 0.3.13 HOT 2
- Extracting the executable file from the .deb release package HOT 3
- Storj S3 restore Error: "cannot find max wal index for restore: missing initial wal segment:" HOT 13
- snapshot successfully sent to S3, but not WAL segments HOT 2
- Question re: running litestream in docker warning at top of doc page HOT 1
- Clarify autocheckpoints consequences HOT 5
- Website menu truncated on mobile HOT 2
- Feature request: Reverse replication HOT 2
- Crash with invalid memory address or nil pointer dereference when restoring HOT 6
- Crash on writing (deleting?) snapshot HOT 1
- Memory leak when replication targets are unhealthy HOT 4
- Is -timestamp broken when restoring? HOT 1
- Continous restore / Restartable restore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litestream.