https://github.com/sameer-j/mongobackuptos3
mongodb backup and upload to s3 bucket
https://github.com/sameer-j/mongobackuptos3
Last synced: 11 months ago
JSON representation
mongodb backup and upload to s3 bucket
- Host: GitHub
- URL: https://github.com/sameer-j/mongobackuptos3
- Owner: sameer-j
- License: mit
- Created: 2019-12-05T11:02:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T12:39:52.000Z (over 6 years ago)
- Last Synced: 2025-01-03T15:29:29.119Z (over 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mongoBackupToS3
mongodb backup and upload to s3 bucket
Last tested on Python 3.6.8
Script to run: `mongoBackupAndRestoreS3.py`
Usage:
```
mongoBackupAndRestoreS3.py [OPTIONS]
Options:
--op TEXT type of operation: backup or restore [required]
--s3bucket TEXT aws bucket name [required]
--help Show this message and exit.
```
It will ask for aws access key id and secret access key as input. You can also configure these as environment variables under `aws_access_key_id` and `aws_secret_access_key`; this helps them configurable via jenkins as well.
Example usage: `python mongoBackupAndRestoreS3.py --op backup --s3bucket 'mybucket'`