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
Hashes for backwork-backup-mongo-0.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a34c39429afd924eae68842a94f973b614366a0e268e183d7a0b9eeec48050 |
|
MD5 | 1ebde7796e5285d11e19647508a798bd |
|
BLAKE2b-256 | 55ff3891b27b0ecc9dff36f2285ab22fb717e99be0fe3da10b08b0f3f72eaea7 |