{ "info": { "author": "Frederik Ring", "author_email": "frederik.ring@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# mongo-lambda-backup\n[![Build Status](https://travis-ci.org/m90/mongo-lambda-backup.svg?branch=master)](https://travis-ci.org/m90/mongo-lambda-backup)\n> Backup MongoDB databases using AWS Lambda functions\n\nThe code in this repo allows running the backup of a MongoDB database to S3 on AWS Lambda by emulating a `mongodump` using `pymongo` and `boto3`. By default the function will create a JSON file for every collection in the database and save them in a `/backup` folder.\n\n## Install from pip\n\n```\npip install mongo_lambda_backup\n```\n\n## Configuration\n\nAll configuration values are passed using environment variables.\n\nThe following values are required:\n\n- `MONGO_URI`: The URI (including authentication credentials if needed) of the MongoDB host to be backed up. In case this **contains credentials** you can encrypt this value using AWS KMS and set `MONGO_URI_IS_ENCRYPTED` to tell the Lambda it needs to decrypt the given value.\n- `BUCKET_NAME`: The name of the S3 bucket to store the backup files in.\n\nThe following values are optional:\n\n- `MONGO_URI_IS_ENCRYPTED`: In case this environment variable is set, the handler assumes the URI (which potentially contains credentials) needs to be encrypted using the KMS key associated with the Lambda.\n- `MONGO_DATABASE`: The name of the database to back up. In case this is not set, it will be read from the path of `MONGO_URI`.\n- `BUCKET_FOLDER`: The folder in the bucket to store the JSON files in. Defaults to `backups`.\n- `COLLECTION_BLACKLIST`: A comma-separated collection of collection names to skip when performing the back up (e.g. for skipping indices or vendor specific databases).\n- `IN_MEMORY`: If set, the collection to be dumped to S3 will be handled in the Lambda's memory before writing. This might affect both backup speed as well as Lambda Limits in certain scenarios.\n\n### License\nMIT \u00a9 [Frederik Ring](http://www.frederikring.com)\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/m90/mongo-lambda-backup", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mongo-lambda-backup", "package_url": "https://pypi.org/project/mongo-lambda-backup/", "platform": "", "project_url": "https://pypi.org/project/mongo-lambda-backup/", "project_urls": { "Homepage": "https://github.com/m90/mongo-lambda-backup" }, "release_url": "https://pypi.org/project/mongo-lambda-backup/0.3.0/", "requires_dist": [ "boto3 (~=1.7.62)", "pymongo (~=3.7.1)" ], "requires_python": "", "summary": "Backup MongoDB databases using AWS Lambda functions", "version": "0.3.0" }, "last_serial": 4648390, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "67e1e7e9843858d56c8e021eeabb967b", "sha256": "b4693f5bf869e6b64471e6082dcb81d8160bd5ba9e0cab9d0f85ead1ab72ae36" }, "downloads": -1, "filename": "mongo_lambda_backup-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "67e1e7e9843858d56c8e021eeabb967b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3195, "upload_time": "2018-08-01T08:26:27", "url": "https://files.pythonhosted.org/packages/82/39/969acdfa73a2afa50f9abc2d18bee4295ca1e5c7ce2e2f25da2f631df60f/mongo_lambda_backup-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83f694a3331fba57448f58e50aa9f1fd", "sha256": "c7bc2bf7d2abe385fb72e6602a23d97cfb949856e145e32637bcbb3d1b93f343" }, "downloads": -1, "filename": "mongo_lambda_backup-0.1.0.tar.gz", "has_sig": false, "md5_digest": "83f694a3331fba57448f58e50aa9f1fd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2564, "upload_time": "2018-08-01T08:26:29", "url": "https://files.pythonhosted.org/packages/c0/9e/2beee652f2505fc97b1d3e0d8a0246d3e98a2198933ad945e57103d45bc4/mongo_lambda_backup-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "b3f6dfa24c84d6cef12f0dfec55cb9c2", "sha256": "1caf9020f8dd67d80adeaf5a092d732fe2cfec5fce832d83e34a26b0a061a693" }, "downloads": -1, "filename": "mongo_lambda_backup-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "b3f6dfa24c84d6cef12f0dfec55cb9c2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3408, "upload_time": "2018-12-16T12:24:41", "url": "https://files.pythonhosted.org/packages/d8/6e/223a3ee9cb8d464f4c12656b0a22130ad9be636ece63238e06dc0ca5870d/mongo_lambda_backup-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "69904b8d2de7189abbf91085630af6a8", "sha256": "e3f3ec69410b2f2558ef54f10edeb79ef5d118a69c75d892bc26e53579c9336a" }, "downloads": -1, "filename": "mongo_lambda_backup-0.2.0.tar.gz", "has_sig": false, "md5_digest": "69904b8d2de7189abbf91085630af6a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2835, "upload_time": "2018-12-16T12:24:43", "url": "https://files.pythonhosted.org/packages/1a/ad/476803cedaa98f2782b5144cf4af5a838301162bae0cab06d12550dd0f82/mongo_lambda_backup-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "7446f67f81389907b0b0a9a778615467", "sha256": "58e703bc5d264cdf6a8cd93bb056823f54305f242df8645bce0228998673c306" }, "downloads": -1, "filename": "mongo_lambda_backup-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7446f67f81389907b0b0a9a778615467", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3693, "upload_time": "2018-12-31T16:29:17", "url": "https://files.pythonhosted.org/packages/5b/2f/18cd47c7c02321f8d932c0e5597c8fb9098ae8984c192f2d221827057838/mongo_lambda_backup-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb363a27146762b34183cd2b4e3692c8", "sha256": "5201c02a58245ddd33c7adc6980702af5d7aafe029ef085f4de680da44feb232" }, "downloads": -1, "filename": "mongo_lambda_backup-0.3.0.tar.gz", "has_sig": false, "md5_digest": "fb363a27146762b34183cd2b4e3692c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3113, "upload_time": "2018-12-31T16:29:19", "url": "https://files.pythonhosted.org/packages/0e/fe/94c1dce1e96c554fea4b93cd4eb47523f2918f85ffa1597bc4ef89b1134c/mongo_lambda_backup-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7446f67f81389907b0b0a9a778615467", "sha256": "58e703bc5d264cdf6a8cd93bb056823f54305f242df8645bce0228998673c306" }, "downloads": -1, "filename": "mongo_lambda_backup-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7446f67f81389907b0b0a9a778615467", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3693, "upload_time": "2018-12-31T16:29:17", "url": "https://files.pythonhosted.org/packages/5b/2f/18cd47c7c02321f8d932c0e5597c8fb9098ae8984c192f2d221827057838/mongo_lambda_backup-0.3.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb363a27146762b34183cd2b4e3692c8", "sha256": "5201c02a58245ddd33c7adc6980702af5d7aafe029ef085f4de680da44feb232" }, "downloads": -1, "filename": "mongo_lambda_backup-0.3.0.tar.gz", "has_sig": false, "md5_digest": "fb363a27146762b34183cd2b4e3692c8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3113, "upload_time": "2018-12-31T16:29:19", "url": "https://files.pythonhosted.org/packages/0e/fe/94c1dce1e96c554fea4b93cd4eb47523f2918f85ffa1597bc4ef89b1134c/mongo_lambda_backup-0.3.0.tar.gz" } ] }