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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file backwork-backup-mongo-0.3.2.tar.gz.
File metadata
- Download URL: backwork-backup-mongo-0.3.2.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04d21fc0e32572aabf43820972a0285e8965fab12f05543c2ed8728b7881f953
|
|
| MD5 |
b287e196bb39c11be7bef60c1b660a07
|
|
| BLAKE2b-256 |
80914f970f4fbfe711de1bf8c5cc51d24badee85b7b06e82e2ced5b0f4546c30
|
File details
Details for the file backwork_backup_mongo-0.3.2-py3-none-any.whl.
File metadata
- Download URL: backwork_backup_mongo-0.3.2-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c6262f2a89270fa8b16996e8db19cb17a85e23927f8f53bb6eee3fe0f20cd4a
|
|
| MD5 |
e83217ee9b161b6ae55e17a5c403ea4c
|
|
| BLAKE2b-256 |
4427e496680b5a2466d8cd48865e165ac1befe7cb14498af1d04eeef9858e05c
|