Backwork plug-in for MongoDB backups.
Project description
monsoon-backup-mongo
Add support for MongoDB backups on monsoon
.
Requirements
This plug-in is build on top of mongodump
,
so you will need to have mongo-tools
installed.
If you already have the mongod
server or mongo
client installed then you
should have mongodump
. If not, you can install them using the
official packages
or build from source.
Installing
You can use pip
to install this plug-in directly from GHE:
$ pip install git+ssh://git@github.ibm.com/apset/monsoon-backup-mongo
Using
After installing the plug-in you will be able to use the backup mongo
command
on monsoon
.
$ monsoon backup mongo --help
usage: monsoon backup mongo [-h]
Backup a MongoDB database. It uses `mongodump` so it's required to have it
installed and added to the system's PATH. You can use any of the arguments
supported by `mongodump`. Use `mongodump -h` for more information.
optional arguments:
-h, --help show this help message and exit
$ monsoon backup mongo
2017-01-17 01:26:27,420 mongo.mongo INFO starting mongo backup...
2017-01-17 01:26:27,421 mongo.mongo INFO saving file to /dumps/mongo_backup_20170117-012627.archive.gz
2017-01-17 01:26:27,483 mongo.mongo INFO output:
2017-01-17T01:26:27.479-0500 writing app.products to archive '/dumps/mongo_backup_20170117-012627.archive.gz'
2017-01-17T01:26:27.480-0500 done dumping app.products (1 document)
2017-01-17 01:26:27,483 mongo.mongo INFO backup complete
You can pass any option that you would normally use on mongodump
:
$ monsoon backup mongo --user=user --password=pass --host=mongo
The only exception is -h
which is reserved for the help/usage message, so the
host needs to be passed as --host
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for backwork-backup-mongo-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49f49de5d7e3f6b24d712c320bd3cdb428fa563b08c771f4803f1b4df3780c78 |
|
MD5 | 6b1750bf41227ab93b9319fa5c7f72ef |
|
BLAKE2b-256 | c6ceea7b1d3717ee2a0488f1552fcf62d8fa7870928c3fa1f280c2392e3e29de |
Hashes for backwork_backup_mongo-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4d7cb7c2988e219086ae8d4ad58698f32639aecdb0fec730ae8ebaec66ded25 |
|
MD5 | 7f868a7791a8ec0b20919336d42d794d |
|
BLAKE2b-256 | 9b5347215917df200a643f1234f121c763dfbd665af9e805cb81dd2bc1a3b4c2 |