-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for the new Scaleway Object Storage (S3 compatible) #2023
Comments
@tapionx Thanks for filling out the issue template! First, please update your restic version, the latest version is 0.9.2 and has lots of improvements and fixes since 0.8.3. You can go to https://github.com/restic/restic/releases to get a binary for your OS, if your package manager isn't updated. Second, Scaleway say on their website that the object storage is S3 compliant, so you should be able to use it straight off with restic using the S3 backend. They do say that they "currently support a subset of S3 operations", but give it a shot and see how it works. More info is at https://www.scaleway.com/docs/s3-object-storage-api/ apparently. |
i think version is not relevant here.. |
Yes, the version note was just a friendly suggestion, considering your current version is very old. If you can, I recommend you update. Yeah, that's the first thing to do; Try to use it as regular S3 (but obviously with a valid endpoint, as you say). See https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html#amazon-s3 for more detailed instructions 👍 |
I agree with @rawtaz, it should work out of the box with either the s3 backend or with the rclone backend, given that it works with programs like I'm going to close this issue for now, please feel free to add further comments when you try it. Thanks! |
It seems that Scaleway Object storage is unusable if you are using V4 Signatures (works fine with V2, at least using https://s3browser.com/)
which is consistent with what I get when using V4 signature with s3browser: |
Hm, as far as I know the s3 library we're using (minio-go) supports v2 and v4 signatures. Can you maybe say a word on that @harshavardhana? Did you try using the We're trying not to add new backends for now, doing so creates a lot of maintenance and testing work... |
This looks like a bug in Scaleway @juzam @fd0 - we could get. But since both restic, s3browser are seeing same errors it is most probably a server issue. |
@fd0 not yet, I'll try and report back
Ack. no need to add new backends if we can manage with the existing ones. @harshavardhana From my limited testing it seems that Scaleway only supports v2 signatures but it should still be useable with minio-go, isn't it? maybe I'm missing something obvious, sorry for that. |
yes, in that case, you need to use minio.NewV2() - I don't think restic supports that @fd0 ? |
tl;dr: it works via rclone with v2 signatures @fd0 happy to report that Scaleway S3 can be used if configured via rclone backend with a preexisting bucket. here's the relevant rclone
at first i've specified nothing as region using option
but it didn't work, just another info that corroborate the theory that v4 signatures are not a thing on Scaleway. Edit: the bucket must be already present, if not, rclone can't create it with the above configuration, giving this error:
|
thank you very much for leaving feedback! :) |
Actually, I use this command
Thanks @juzam |
just a quick update to anyone is looking to use Scaleway service. I had trouble saving backups to the |
FYI, this works both on
We do support SigV4, but we don't have a "common" endpoint and Minio does not switch region ( Cheers |
Restic should update to latest minio-go we have done some changes to handle region requirements appropriately. |
@fd0 is this hard to implement? even if it works via rclone, using the s3 backend directly is more straightforward (and clean if you ask me). thank you for your time :) |
Due to errors, I recently changed my rclone.conf :
Inspired of https://habd.as/post/borg-backup-minio-scaleway/ article |
I had the same issue and added support for Scaleway to minio-go. Then rebuilt restic (and mc) with the updated version and both work fine, no further changes required, just use the s3 backend. |
It seems it's up to restic developers to add region support. Should this issue be reopened? |
@rawtaz It definitely does. I didn't need to set the environment variable. |
Awesome! |
Output of
restic version
0.8.3
What should restic do differently? Which functionality do you think we should add?
Add a new backend supporting the new Scaleway Object Storage
https://www.scaleway.com/docs/object-storage-feature/
What are you trying to do?
I would like to use restic to backup my VPS on Scaleway.
Since the internal traffic will be free, i would love to use that Object Storage.
Did restic help you or made you happy in any way?
Restic is awesome!
The text was updated successfully, but these errors were encountered: