{ "info": { "author": "dreipol GmbH", "author_email": "dev@dreipol.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "==================\ndjango-green-grove\n==================\n\nCollection of helpers to back up Django projects that use a Postgres database and a S3 bucket as media storage.\n\n\nQuickstart\n----------\n\nInstall django-green-grove using pip::\n\n pip install django-green-grove\n\n\nAdd the following to your ``settings.py`` module::\n\n BACKUP_BUCKET_AWS_ACCESS_KEY_ID = ''\n BACKUP_BUCKET_AWS_SECRET_ACCESS_KEY = '\n BACKUP_BUCKET_BUCKET_NAME = ''\n BACKUP_BUCKET_LOCATION = ''\n\n\nBackup Project\n--------------\n\nWe suggest to use this management command as a cron tab::\n\n python manage.py backup_project\n\n\nTutorial\n--------\n\nThis tutorial covers the steps that are needed to backup and restore a Django project that uses a Dokku hosting with a Postgres database and a S3 Bucket as media storage.\n\n**Backup project**\n\n1. Connect to your server\n2. Connect to the docker container: ``dokku enter ``\n3. ``python manage.py backup_project``\n\n**Restore from backup**\n\n1. Connect to your server\n2. Connect to the database: ``dokku postgres:connect db``\n3. Drop the database: ``DROP DATABASE ;``\n4. Recreate the database: ``CREATE DATABASE ;``\n5. Grant privileges: ``GRANT ALL PRIVILEGES ON DATABASE to ;``\n6. Exit the postgres console and the session on the server\n7. Download the database dump file from the bucket to your local machine: ``s3cmd cp .``\n8. Move the dump file to the server: ``scp ``\n9. Connect to your server\n10. Import the dump: ``cat | sudo docker exec -i dokku.postgres.db psql -U ``\n11. Remove the media folder of your bucket (s3cmd or web interface)\n12. Open up the terminal on your local machine\n13. Copy the backup of the media folder back to the bucket:\n \u00a0 ``s3cmd cp --recursive --acl-public s3://backups///media/ s3:///media/``\n\n\nTrivia\n------\n\nThis package is named after the fictional retirement community where Tony Soprano, Paulie Gualtieri, and other Mafiosi admit their mothers, in The Sopranos.\n\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dreipol/django-green-grove", "keywords": "django-green-grove", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-green-grove", "package_url": "https://pypi.org/project/django-green-grove/", "platform": "", "project_url": "https://pypi.org/project/django-green-grove/", "project_urls": { "Homepage": "https://github.com/dreipol/django-green-grove" }, "release_url": "https://pypi.org/project/django-green-grove/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "Collection of helpers to back up Django projects that use a Postgres database and a S3 bucket as media storage.", "version": "0.1.2" }, "last_serial": 3665253, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "da488442854a9e5ffb36babd6bc5ebcd", "sha256": "85aeb7125d7ceb113261b470ea3d31fc20fd817612ebb69b602accae0b51c080" }, "downloads": -1, "filename": "django-green-grove-0.1.0.tar.gz", "has_sig": false, "md5_digest": "da488442854a9e5ffb36babd6bc5ebcd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7119, "upload_time": "2017-06-28T13:11:58", "url": "https://files.pythonhosted.org/packages/34/6e/a558b44a94382387ab5b700bf414fae8cfe440259fcbcc893e0570ff7b57/django-green-grove-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "49f8af031bca0b5a8d9c638c02de9750", "sha256": "f443529b784925614514e67b24f52d04189a1aa87844d4f291604abc0a1aff74" }, "downloads": -1, "filename": "django-green-grove-0.1.1.tar.gz", "has_sig": false, "md5_digest": "49f8af031bca0b5a8d9c638c02de9750", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7833, "upload_time": "2017-07-07T14:40:09", "url": "https://files.pythonhosted.org/packages/6f/ed/86d33254e8e23561bd5025a02ac20753d183dc83f2d48b6ea4bf8aae3d3b/django-green-grove-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "eb9760ff9ecb96b7d699ca88a7c7d7c3", "sha256": "639f53e7ca128971b8978dd22be326ba6e750b49418f1e68f15dbf23eeace67f" }, "downloads": -1, "filename": "django-green-grove-0.1.2.tar.gz", "has_sig": false, "md5_digest": "eb9760ff9ecb96b7d699ca88a7c7d7c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8210, "upload_time": "2018-03-13T13:16:08", "url": "https://files.pythonhosted.org/packages/67/07/715670d26846fb3aa791a90f6184a2a3297e9e0bae957fbeefb78a7ae033/django-green-grove-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "eb9760ff9ecb96b7d699ca88a7c7d7c3", "sha256": "639f53e7ca128971b8978dd22be326ba6e750b49418f1e68f15dbf23eeace67f" }, "downloads": -1, "filename": "django-green-grove-0.1.2.tar.gz", "has_sig": false, "md5_digest": "eb9760ff9ecb96b7d699ca88a7c7d7c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8210, "upload_time": "2018-03-13T13:16:08", "url": "https://files.pythonhosted.org/packages/67/07/715670d26846fb3aa791a90f6184a2a3297e9e0bae957fbeefb78a7ae033/django-green-grove-0.1.2.tar.gz" } ] }