-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
MongoDB Atlas support #149
Comments
Hi there this has been added to version |
Hi, Having some issues using this new version. |
Thanks for the report. |
Thanks! I'll try it :) |
It wasn't working, so I checked the code again and found: In my opinion, it would be nice to have a way, through ENV vars, to specify the full uri just like |
I agree with your opinion. I can do that. |
Yes. The uri can contain the username and password in the format that I mentioned before Basically if you accept an URI from the env vars (don't modify it) and pass it through to mongodump, it would allow the user to access any mongodb instance (self-hosted or atlas) and even specify extra options. |
Perfect, thanks for the input here. Let me give this a think over the next 24 hours and come up with a way forward. |
@tiredofit @Dinip, my understanding is we should be able to use I am sorry, I created this issue and planned to implement this myself, but I was dragged into some urgent work and didn't have a chance to do that. Once I finished the urgent job (hopefully by tomorrow), I can help to do testing and debugging. |
In a377f57 I've added support for a If you aren't happy with the |
Something must be wrong with this validation
|
Thanks for feedback. Pushing new |
Pulled the new docker image and seems to be doing the same 🤔 |
That's bizarre, I had switched it to this: For time being I am going to strip any host checking just to get us to the good stuff. |
The backup now works but is having some errors at the end and it does not upload to the s3 bucket. Timeline:
Reads the data from the mongo instance and writes it to the archive.gz file At the end
Doesn't upload to S3 |
Thanks, looking into and will have a fix momentarily. |
Right - Next |
Yep, now seems to work! |
Awesome. I'm going to do that one right now - If you wanted to check the new |
Interesting. Can I get some of the environment variables you are using? I can't seem to recreate this whatsoever. |
New |
Well... |
Death by environment variables - New |
Description of the feature
Currently
docker-db-backup
does not support MongoDB Atlas. It would be great to supportmongodb+srv://
type of hosts. The simplest way is to use--uri
instead of--host
withmongodump
.Benefits of feature
By replacing
--host
with--uri
and addingDB_HOST_TYPE
(default tomongodb
and can be set tomongodb+srv
), it makes themongodump
more flexible.The text was updated successfully, but these errors were encountered: