Skip to main content

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

backwork-backup-mongo-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

backwork_backup_mongo-0.1.1-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page