Backwork plug-in for MongoDB backups.
Project description
backwork-backup-mongo
Adds support for MongoDB backups to backwork
.
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:
$ pip install backwork-backup-mongo
Using
After installing the plug-in you will be able to use the backup mongo
and restore mongo
commands
on backwork
.
backwork backup mongo
$ backwork backup mongo --help
usage: backwork 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 --help` for more information.
optional arguments:
-h, --help show this help message and exit
You can pass any option that you would normally use on mongodump
, e.g.:
$ backwork 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
.
backwork restore mongo
$ backwork restore mongo --help
usage: backwork restore mongo [-h]
Restore a MongoDB database. It uses `mongorestore` so it's required to have it
installed and added to the system's PATH. You can use any of the arguments
supported by `mongorestore`. Use `mongorestore --help` for more information.
optional arguments:
-h, --help show this help message and exit
You can pass any option that you would normally use on mongorestore
, e.g.:
$ backwork restore mongo --user=user --password=pass --host=mongo dumps
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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ad319cc59410b388ca3e9b1d60a3e4baa2f70c0101b6d6f395811825bdc002b |
|
MD5 | 830cfd57f3d63109111e9394742beaed |
|
BLAKE2b-256 | 8aca654497b4d404c4351a2a66c74a4dc8f0b586c7a3fcf9b5f48dde8f376542 |