{ "info": { "author": "Luiz Aoqui", "author_email": "laoqui@ca.ibm.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2 :: Only", "Topic :: Database", "Topic :: System :: Archiving :: Backup", "Topic :: Utilities" ], "description": "# backwork-backup-mysql [![Build Status](https://travis-ci.org/IBM/backwork-backup-mysql.svg?branch=master)](https://travis-ci.org/IBM/backwork-backup-mysql) [![PyPI version](https://badge.fury.io/py/backwork-backup-mysql.svg)](https://badge.fury.io/py/backwork-backup-mysql)\nAdd support for MySQL backups on [`backwork`](https://github.com/IBM/backwork).\n\n## Requirements\nThis plug-in is build on top of [`mysqldump`](http://dev.mysql.com/doc/refman/en/mysqldump.html),\nso you will need to it installed.\n\n`mysqldump` is part of the `mysql` client.cd .\n\n## Installing\nYou can use `pip` to install this plug-in:\n```sh\n$ pip install backwork-backup-mysql\n```\n\n## Using\nAfter installing the plug-in you will be able to use the `backup mysql` and `restore mysql` commands\non `backwork`:\n\n\n#### backwork backup mysql\n```sh\n$ backwork backup mysql -h\nusage: backwork backup mysql [-h] [--gzip] [-o OUTPUT]\n\nBackup a MySQL database. It uses `mysqldump` so it's required to have it\ninstalled and added to the system's PATH. You can use any of the arguments\nsupported by `mysqldump`. Use `mysqldump -h` for more information.\n\noptional arguments:\n -h, --help show this help message and exit\n --gzip compress output file (requires gzip to be installed)\n -o OUTPUT, --output OUTPUT\n output file path\n```\n\nYou can pass any option that you would normally use on `mysqldump`:\n\n```sh\n$ backwork backup mysql --host 192.168.99.1 -u root -ppassword --port 32769 --all-databases\n```\n\nAs shown in the `--help` message, there are two extra arguments you can use in\nyour backup process `--gzip` and `-o`.\n\n`--gzip` will compress the output and requires the `gzip` command to be\navailable in your system.\n\n`-o OUTPUT` or `--output OUTPUT` will save the output of `mysqldump` into a\nfile.\n\n#### backwork restore mysql\n\n```sh\nusage: backwork restore mysql [-h] [--gzip] [-i INPUT]\n\nRestore MySQL databases. It uses `mysql` so it's required to have it\ninstalled and added to the system's PATH.\n\noptional arguments:\n -h, --help show this help message and exit\n --gzip decompress backup file before restoring (requires gzip to be installed)\n ```\n\nYou can pass any option that you would normally use to connect to your mysql instance:\n\n```sh\n$ backwork restore mysql --host 192.168.99.1 -u root -ppassword --port 32769 --gzip --input==\"mybackup.archive.gz\"\n```\n\n**Important:** There is a conflict with the `-h` argument since it is reserved\nfor the help/usage message. User `--host` to pass the hostname.", "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/IBM/backwork-backup-mysql", "keywords": "", "license": "Apache 2", "maintainer": "", "maintainer_email": "", "name": "backwork-backup-mysql", "package_url": "https://pypi.org/project/backwork-backup-mysql/", "platform": "", "project_url": "https://pypi.org/project/backwork-backup-mysql/", "project_urls": { "Homepage": "https://github.com/IBM/backwork-backup-mysql" }, "release_url": "https://pypi.org/project/backwork-backup-mysql/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Backwork plug-in for MySQL backups.", "version": "0.3.0" }, "last_serial": 5693012, "releases": { "0.1.7": [ { "comment_text": "", "digests": { "md5": "6a5c5490bf776a9d24a49ce1b9433558", "sha256": "705568e42247e87af397a4f334f1a00c703b855db9324b7093ad43a1d9a5c5a3" }, "downloads": -1, "filename": "backwork_backup_mysql-0.1.7-py3-none-any.whl", "has_sig": false, "md5_digest": "6a5c5490bf776a9d24a49ce1b9433558", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8041, "upload_time": "2019-08-14T16:08:31", "url": "https://files.pythonhosted.org/packages/91/92/61dfed6f26bec7b9cabf635eb5a17c2d195a2bbface17f6aadb902fa53c1/backwork_backup_mysql-0.1.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "afb1ce4d10100165334890821c56a6e6", "sha256": "a86d5730b6e29718539cded8ee413aa448989044a5953ad48d483f09ab9746c0" }, "downloads": -1, "filename": "backwork-backup-mysql-0.1.7.tar.gz", "has_sig": false, "md5_digest": "afb1ce4d10100165334890821c56a6e6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3788, "upload_time": "2019-08-14T16:08:33", "url": "https://files.pythonhosted.org/packages/01/7d/ea393e5eb92da36850111d391c48f9a3bfd9a6f4b0f0cbc24ffcddeeefd2/backwork-backup-mysql-0.1.7.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "8018b95975424f128e1d119d9a888fc8", "sha256": "12ce8212daa536b61caf5fefe7d8446824bdc8147bcc6c2c048f5029d40ee406" }, "downloads": -1, "filename": "backwork-backup-mysql-0.3.0.tar.gz", "has_sig": false, "md5_digest": "8018b95975424f128e1d119d9a888fc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4265, "upload_time": "2019-08-17T23:44:08", "url": "https://files.pythonhosted.org/packages/99/7f/e3ecdb47a2117e70ecf82954a0d4aa823be5443ffef8c868eeb13bd56642/backwork-backup-mysql-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8018b95975424f128e1d119d9a888fc8", "sha256": "12ce8212daa536b61caf5fefe7d8446824bdc8147bcc6c2c048f5029d40ee406" }, "downloads": -1, "filename": "backwork-backup-mysql-0.3.0.tar.gz", "has_sig": false, "md5_digest": "8018b95975424f128e1d119d9a888fc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4265, "upload_time": "2019-08-17T23:44:08", "url": "https://files.pythonhosted.org/packages/99/7f/e3ecdb47a2117e70ecf82954a0d4aa823be5443ffef8c868eeb13bd56642/backwork-backup-mysql-0.3.0.tar.gz" } ] }