{ "info": { "author": "Thomas Sileo", "author_email": "thomas.sileo@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Topic :: System :: Archiving :: Backup" ], "description": "=====\nmo2s3\n=====\n\nA python **command line tool** that simplify **MongoDB backup** (mongodump/mongorestore) **to Amazon S3**.\n\nStdout/stderr is displayed for each command so if something goes wrong, you can see it immediately.\n\nYou can download and restore generated backups yourself **without mo2s3** (just download, untar and mongorestore).\n\nRequirements\n============\n\nIt makes use of **argparse** for parsing arguments, **mongodump**/**mongorestore**/**tar** with **envoy** and **boto** to upload/download to S3.\n\n* `Envoy `_ python subprocesses for humans\n* `Boto `_ to interact with AWS S3\n* `Argparse `_ for parsing command line arguments\n\nInstallation\n============\n\n $ pip install mo2s3\n\nYou can configure your AWS/MongoDB credentials with mo2s3:\n\n $ mo2s3 configure\n\nAnd you can also edit **~/.mo2s3.cfg**.\n\nUsage\n=====\n\nBasic usage, mo2s3 -h to show the help.\n\n\nList bucket files\n-----------------\n\n $ mo2s3 list\n\n\nPerform Backup\n--------------\n\n $ mo2s3 backup\n\n $ mo2s3 backup --db mydb\n\n\nRestore\n-------\n\n $ mo2s3 restore --filename mongodump_20120610235933.tgz\n\n $ mo2s3 restore --host anotherhost.com:27017 --db mydb --filename mongodump_mydb_20120611150815.tgz\n\n\nDelete backup\n-------------\n\n $ mo2s3 delete --filename mongodump_20120610235933.tgz\n\nDelete all backups\n------------------\n\n $ mo2s3 drop\n\n\nHow It Works\n============\n\nHere is how a **backup** is performed:\n\n1. Run mongodump on the current directory\n2. Create tgz of the dump with tar\n3. Upload to S3 with boto\n4. Delete every generated file\n\nAnd to **restore**:\n\n1. Download archive from S3\n2. Untar to current directory\n3. Mongorestore the dump\n4. Delete every downloaded file\n\n\nLicense (MIT)\n=============\n\nCopyright (c) 2012 Thomas Sileo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/mo2s3", "keywords": "aws s3 mongodb backup restore archive", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "mo2s3", "package_url": "https://pypi.org/project/mo2s3/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mo2s3/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/mo2s3" }, "release_url": "https://pypi.org/project/mo2s3/0.0.1/", "requires_dist": null, "requires_python": null, "summary": "A python command line tool that simplify MongoDB backup (mongodump/mongorestore) to Amazon S3.", "version": "0.0.1" }, "last_serial": 794878, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "55f8640bd4ff048aea8b83f5b4f0bd74", "sha256": "423be61612f3559aa236efd2c31145a5b9966910deebb5884c958465cf9f0e38" }, "downloads": -1, "filename": "mo2s3-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "55f8640bd4ff048aea8b83f5b4f0bd74", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 7627, "upload_time": "2012-06-11T19:53:52", "url": "https://files.pythonhosted.org/packages/bc/9a/bdb401e0084167fdebf6b6db5afb96aed680733b1ed6da695f3b882ccc2b/mo2s3-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "c8ea004184ece8a633f83df951a88a09", "sha256": "1beace96f31f3eb8cd751616aaba0ecd42efd66453bb8f1052882467a9d8eeca" }, "downloads": -1, "filename": "mo2s3-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c8ea004184ece8a633f83df951a88a09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4489, "upload_time": "2012-06-11T19:53:48", "url": "https://files.pythonhosted.org/packages/47/f5/a96a01812d55204b9f3b8c6e2c4f837a1e76fa142a41abc82c02be6c9b7f/mo2s3-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "55f8640bd4ff048aea8b83f5b4f0bd74", "sha256": "423be61612f3559aa236efd2c31145a5b9966910deebb5884c958465cf9f0e38" }, "downloads": -1, "filename": "mo2s3-0.0.1-py2.7.egg", "has_sig": false, "md5_digest": "55f8640bd4ff048aea8b83f5b4f0bd74", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 7627, "upload_time": "2012-06-11T19:53:52", "url": "https://files.pythonhosted.org/packages/bc/9a/bdb401e0084167fdebf6b6db5afb96aed680733b1ed6da695f3b882ccc2b/mo2s3-0.0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "c8ea004184ece8a633f83df951a88a09", "sha256": "1beace96f31f3eb8cd751616aaba0ecd42efd66453bb8f1052882467a9d8eeca" }, "downloads": -1, "filename": "mo2s3-0.0.1.tar.gz", "has_sig": false, "md5_digest": "c8ea004184ece8a633f83df951a88a09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4489, "upload_time": "2012-06-11T19:53:48", "url": "https://files.pythonhosted.org/packages/47/f5/a96a01812d55204b9f3b8c6e2c4f837a1e76fa142a41abc82c02be6c9b7f/mo2s3-0.0.1.tar.gz" } ] }