chrisantonellis / mongobar Goto Github PK
View Code? Open in Web Editor NEWmongobar ๐ซ MongoDB Backup and Restore manager
License: MIT License
mongobar ๐ซ MongoDB Backup and Restore manager
License: MIT License
Hi, this seems like a really promising project!
I'm having some issues connecting to my database running on a non-standard port (27019).
When I add the details in the config:
$ mongobar config
โโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ root โ /var/lib/mongodbhc/backups โ
โ log_level โ INFO โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Connections:
โ [default] โฌโโโโโโโโโโโโโโโโโโโ
โ host โ localhost โ
โ port โ 27019 โ
โ username โ admin โ
โ password โ **************** โ
โ authdb โ admin โ
โโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโ
I get the following error:
[CRITICAL] Command failed: Command '['mongodump', '-h', 'localhost', '-p', '27019', '-u', 'admin', '-p', '*****************', '--authenticationDatabase', 'admin', '--db', 'scoutTest', '--out', '/var/lib/mongodbhc/backups/localhost:27019/goad-linseed', '--quiet', '--gzip']' returned non-zero exit status 1.
I notice that the -p
option is showing up twice both for port and password which I assume is giving the error.
So I tried giving the port on the mongobar
command line:
$ mongobar backup --port 27019 -d scoutTest
Traceback (most recent call last):
File "/home/hiseq.clinical/miniconda/envs/prod170926/bin/mongobar", line 1255, in <module>
MongobarScript().run()
File "/home/hiseq.clinical/miniconda/envs/prod170926/bin/mongobar", line 121, in run
getattr(self, self.args.action.replace("-", "_"))()
File "/home/hiseq.clinical/miniconda/envs/prod170926/bin/mongobar", line 859, in backup
metadata = self.mb.generate_metadata()
File "/home/hiseq.clinical/miniconda/envs/prod170926/lib/python3.6/site-packages/mongobar/mongobar.py", line 77, in generate_metadata
client = self.create_pymongo_client()
File "/home/hiseq.clinical/miniconda/envs/prod170926/lib/python3.6/site-packages/mongobar/mongobar.py", line 64, in create_pymongo_client
client = pymongo.MongoClient(**options)
File "/home/hiseq.clinical/miniconda/envs/prod170926/lib/python3.6/site-packages/pymongo/mongo_client.py", line 413, in __init__
raise TypeError("port must be an instance of int")
TypeError: port must be an instance of int
Probably just some small bugs - I will try to play around with the code a little and I can open a PR unless you fix it quicker than I ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.