{ "info": { "author": "Tim Allen", "author_email": "tallen@wharton.upenn.edu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "# Django PostgreSQL Copy\n\nThe package `django-pg-copy` provides Django management commands for backing up and restoring PostgreSQL databases. These were developed for copying production databases to development, to allow developers to share images with one another, or bring local development databases up to date.\n\n## Installation\n\n`pip install django-pg-copy`\n\nThen add `'pg_copy',` to your `INSTALLED_APPS` list. It is recommended that it is used in all environments (development, production) so that you can use it against different instances of your database.\n\n## Settings\n\n`PG_COPY_BACKUP_PATH = 'db_backup'`\n\nBy default, PostgreSQL backups will be stored in a directory called `db_backup` where you run the command. This setting will override that location.\n\nIt is also recommended to add this path to your `.gitignore` file, if the path falls under your version control repository.\n\n## Example Commands\n\n`python manage.py pg_backup --settings=config.settings.production --database=default --filename=my_backup.sqlc`\n\nThis command will create a backup in the same directory as `manage.py` called `my_backup.sqlc` using the `default` settings from `DATABASES` using the Django settings file `config.settings.production`.\n\n`python manage.py pg_backup`\n\nThis command will create a backup in the directory `./db_backup/` (or the directory you specified with `PG_COPY_BACKUP_PATH`) called `[timestamp].sqlc` using the `default` settings from `DATABASES` using the default Django settings file resolved by `manage.py`.\n\n`python manage.py pg_restore`\n\nThis command will provide a list of backup files in `PG_COPY_BACKUP_PATH` that can be restored. After selecting a backup file, it will confirm that the user wants to overwrite the destination database by showing which server and database will be overwritten from the settings.\n\n`python manage.py pg_restore --filename=my_file.sqlc`\n\nThis command will read the file `my_file.sqlc` and confirm that the user wants to overwrite the destination database by showing which server and database will be overwritten from the settings.\n\n## Contributors\n\n* Timothy Allen (https://github.com/FlipperPA)\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/FlipperPA/django-pg-copy", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-pg-copy", "package_url": "https://pypi.org/project/django-pg-copy/", "platform": "", "project_url": "https://pypi.org/project/django-pg-copy/", "project_urls": { "Homepage": "https://github.com/FlipperPA/django-pg-copy" }, "release_url": "https://pypi.org/project/django-pg-copy/0.1/", "requires_dist": [ "django-click" ], "requires_python": "", "summary": "", "version": "0.1" }, "last_serial": 3777302, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "9a823251a85dea12593fac31be96917b", "sha256": "02bf16866486a372a16876f8772b195aa7d91c27d69c987d40942bdf42060ec1" }, "downloads": -1, "filename": "django_pg_copy-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9a823251a85dea12593fac31be96917b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5312, "upload_time": "2018-04-18T14:01:09", "url": "https://files.pythonhosted.org/packages/64/e4/94194e09fab299b9eb3820b73197fc4215f8b6e271f42284dc1bb938339e/django_pg_copy-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7feae20f0183521b08197b6f74ca6cd", "sha256": "53bacb8aebf3f0f9b13a73c3649a1bca688a2b7e6adcbd7146f5a47d53179f0f" }, "downloads": -1, "filename": "django-pg-copy-0.1.tar.gz", "has_sig": false, "md5_digest": "c7feae20f0183521b08197b6f74ca6cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3738, "upload_time": "2018-04-18T14:01:10", "url": "https://files.pythonhosted.org/packages/f5/2f/5b11b14c0483cef7fb237dc38bc2d1778290f6c8091be61004c6774d841a/django-pg-copy-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9a823251a85dea12593fac31be96917b", "sha256": "02bf16866486a372a16876f8772b195aa7d91c27d69c987d40942bdf42060ec1" }, "downloads": -1, "filename": "django_pg_copy-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "9a823251a85dea12593fac31be96917b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5312, "upload_time": "2018-04-18T14:01:09", "url": "https://files.pythonhosted.org/packages/64/e4/94194e09fab299b9eb3820b73197fc4215f8b6e271f42284dc1bb938339e/django_pg_copy-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c7feae20f0183521b08197b6f74ca6cd", "sha256": "53bacb8aebf3f0f9b13a73c3649a1bca688a2b7e6adcbd7146f5a47d53179f0f" }, "downloads": -1, "filename": "django-pg-copy-0.1.tar.gz", "has_sig": false, "md5_digest": "c7feae20f0183521b08197b6f74ca6cd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3738, "upload_time": "2018-04-18T14:01:10", "url": "https://files.pythonhosted.org/packages/f5/2f/5b11b14c0483cef7fb237dc38bc2d1778290f6c8091be61004c6774d841a/django-pg-copy-0.1.tar.gz" } ] }