Skip to main content

backwork-backup-mongo Build Status PyPI version

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.

Metadata

Release files for backwork-backup-mongo 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for backwork-backup-mongo 0.3.2
File Size Uploaded Provenance Actions
backwork-backup-mongo-0.3.2.tar.gz 8.4 kB Without provenance Details for backwork-backup-mongo-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for backwork-backup-mongo 0.3.2
File Interpreter ABI Platform Actions
backwork_backup_mongo-0.3.2-py3-none-any.whl Python 3 none any Details for backwork_backup_mongo-0.3.2-py3-none-any.whl

Total release size: 16.9 kB

Release files / backwork-backup-mongo-0.3.2.tar.gz

Download URL backwork-backup-mongo-0.3.2.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
04d21fc0e32572aabf43820972a0285e8965fab12f05543c2ed8728b7881f953
BLAKE2b-256 checksum
How to use checksums
80914f970f4fbfe711de1bf8c5cc51d24badee85b7b06e82e2ced5b0f4546c30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / backwork_backup_mongo-0.3.2-py3-none-any.whl

Download URL backwork_backup_mongo-0.3.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c6262f2a89270fa8b16996e8db19cb17a85e23927f8f53bb6eee3fe0f20cd4a
BLAKE2b-256 checksum
How to use checksums
4427e496680b5a2466d8cd48865e165ac1befe7cb14498af1d04eeef9858e05c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for backwork-backup-mongo 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page