{ "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-postgresql [![Build Status](https://travis-ci.org/IBM/backwork-backup-postgresql.svg?branch=master)](https://travis-ci.org/IBM/backwork-backup-postgresql) [![PyPI version](https://badge.fury.io/py/backwork-backup-postgresql.svg)](https://badge.fury.io/py/backwork-backup-postgresql)\nAdd support for PostgreSQL backups on [`backwork`](https://github.ibm.com/apset/backwork).\n\n## Requirements\nThis plug-in is build on top of [`pg_dump`](https://www.postgresql.org/docs/current/static/app-pgdump.html),\nso you will need to it installed.\n\n`pg_dump` is part of the `postgresql` client.\n\n## Installing\nYou can use `pip` to install this plug-in:\n```sh\n$ pip install backwork-backup-postgresql\n```\n\n## Using\nAfter installing the plug-in you will be able to use the `backup mysql` command\non `backwork`.\n\n```sh\nbackwork backup postgresql -h\nusage: backwork backup postgresql [-h] [--gzip] [-o OUTPUT] -P PASSWORD\n\nBackup a PostgreSQL database. It uses `pg_dump` so it's required to have it\ninstalled and added to the system's PATH. You can use any of the arguments\nsupported by `pg_dump`. Use `pg_dump --help` 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 -P PASSWORD, --password PASSWORD\n PostgreSQL connection password\n```\n\nYou can pass any option that you would normally use on `mysqldump`:\n\n```sh\n$ backwork backup postgresql -P password --host=192.168.99.1 --username=root --port=32769 --dbname=MY_DATABASE\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 `pg_dump` into a\nfile.\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-postgresql", "keywords": "", "license": "Apache 2", "maintainer": "", "maintainer_email": "", "name": "backwork-backup-postgresql", "package_url": "https://pypi.org/project/backwork-backup-postgresql/", "platform": "", "project_url": "https://pypi.org/project/backwork-backup-postgresql/", "project_urls": { "Homepage": "https://github.com/ibm/backwork-backup-postgresql" }, "release_url": "https://pypi.org/project/backwork-backup-postgresql/0.2.1/", "requires_dist": null, "requires_python": "", "summary": "Backwork plug-in for PostgreSQL backups.", "version": "0.2.1" }, "last_serial": 5693156, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "b501ce74112846ca6c9e57fb2b57efac", "sha256": "285b2a99e186aa5c5fd8ba17aa63c6aaa423e3e7211e183fc1a1c1d3d3f9f5f6" }, "downloads": -1, "filename": "backwork_backup_postgresql-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "b501ce74112846ca6c9e57fb2b57efac", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8285, "upload_time": "2019-08-14T16:02:18", "url": "https://files.pythonhosted.org/packages/ef/7d/9f2b8694b4a1f9f2438451b37d3cb85cab0d77ad720cd6d74825c3547d50/backwork_backup_postgresql-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2256c85f3618f2e3324ba1ed769357ac", "sha256": "419151336c225cbbcb54496215e6b5ba046958522b5165492e9e33299156dd57" }, "downloads": -1, "filename": "backwork-backup-postgresql-0.1.5.tar.gz", "has_sig": false, "md5_digest": "2256c85f3618f2e3324ba1ed769357ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3898, "upload_time": "2019-08-14T16:02:20", "url": "https://files.pythonhosted.org/packages/a6/3a/a4c385289647615dc9abc8d6fc2222c61bef539bdf89dfa5d5b7bb7aa03e/backwork-backup-postgresql-0.1.5.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "c007f32b02a936e529ae21c50d8dc67b", "sha256": "6efcc0149b107ea24c302ee937fb8f0c12a6995f794a559c9eafc6b9a007677d" }, "downloads": -1, "filename": "backwork-backup-postgresql-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c007f32b02a936e529ae21c50d8dc67b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3954, "upload_time": "2019-08-18T01:14:33", "url": "https://files.pythonhosted.org/packages/5b/7d/a3b4b614a7635796b143f56d5260e072b7b32146fb1ef46430033046e10a/backwork-backup-postgresql-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c007f32b02a936e529ae21c50d8dc67b", "sha256": "6efcc0149b107ea24c302ee937fb8f0c12a6995f794a559c9eafc6b9a007677d" }, "downloads": -1, "filename": "backwork-backup-postgresql-0.2.1.tar.gz", "has_sig": false, "md5_digest": "c007f32b02a936e529ae21c50d8dc67b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3954, "upload_time": "2019-08-18T01:14:33", "url": "https://files.pythonhosted.org/packages/5b/7d/a3b4b614a7635796b143f56d5260e072b7b32146fb1ef46430033046e10a/backwork-backup-postgresql-0.2.1.tar.gz" } ] }