{ "info": { "author": "Cayetano Benavent", "author_email": "cayetano.benavent@geographica.gs", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable" ], "description": "CartoDB Backup\r\n==============\r\n\r\n|PyPI version|\r\n\r\nPython CLI to make a backup of an entire CartoDB domain to SQL dump file\r\n(zipped).\r\n\r\nOptional:\r\n\r\n- You can restore SQL dumped file to a new (created) PostGIS DB.\r\n- You can upload sql files to Amazon S3.\r\n- Message from Amazon SNS (Simple Notification Service).\r\n\r\nBefore execute this script you need a cartodbbkconfig.py file properly\r\nformed (See cartodbbkconfig\\_example.py).\r\n\r\ncartodbbkconfig.py config parameters:\r\n\r\n.. code:: python\r\n\r\n confparams = {\r\n \"cdb_apikey\": \"here your api key\",\r\n \"cdb_domain\": \"here your domain\",\r\n \"sql_folderpath\": \"here your dump folderpath\",\r\n \"pg_user\": \"here your db admin user\",\r\n \"pg_pswd\": None, # If you leave the password to None, the program will ask you in the command line interface\r\n \"pg_dbase\": \"here your db name\",\r\n \"pg_host\": \"here your db host\",\r\n \"pg_port\": \"here your db port\",\r\n \"pg_newdatabase\": \"here your new db name\",\r\n \"aws_acckey\": \"here your AWS Acces Key\",\r\n \"aws_seckey\": \"here your AWS Secret Key\",\r\n \"aws_bucket\": \"here your AWS bucket\",\r\n \"aws_prekey\": \"here your AWS bucket prefix key\",\r\n \"sns_regname\": \"here your AWS region name\",\r\n \"sns_arn\": \"here your SNS ARN\",\r\n \"sns_subject\": \"My project\"\r\n }\r\n\r\nInstallation\r\n------------\r\n\r\nYou can install this package from PYPI:\r\nhttps://pypi.python.org/pypi/cartodb\\_backup\r\n\r\n.. code:: bash\r\n\r\n $ pip install cartodb_backup\r\n\r\nYou can also install it in this way:\r\n\r\n.. code:: bash\r\n\r\n $ python setup.py install\r\n\r\nUsage\r\n-----\r\n\r\nPython CLI:\r\n\r\n.. code:: bash\r\n\r\n $ cartodb_backup [-h] configfile [--postgis_backup] [--aws_s3upload]\r\n [--amz_sns] [--rmv_localfl]\r\n\r\n positional arguments:\r\n configfile Config filepath: /folderlocation/\r\n\r\n optional arguments:\r\n -h, --help show this help message and exit\r\n --postgis_backup POSTGIS_BACKUP PostGIS backup (restoring dump file created)\r\n --aws_s3upload Upload file to Amazon S3\r\n --amz_sns Amazon SNS message\r\n --rmv_localfl Remove local file after a successfully Amazon S3 upload\r\n\r\nExample without PostGIS backup:\r\n\r\n.. code:: bash\r\n\r\n $ cartodb_backup /folderlocation/\r\n\r\nExample with PostGIS backup:\r\n\r\n.. code:: bash\r\n\r\n $ cartodb_backup /folderlocation/ --postgis_backup\r\n\r\nExample with Amazon S3 upload:\r\n\r\n.. code:: bash\r\n\r\n $ cartodb_backup /folderlocation/ --aws_s3upload\r\n\r\nExample with Amazon S3 upload and Amazon SNS (removing local sql folder\r\nafter upload):\r\n\r\n.. code:: bash\r\n\r\n $ cartodb_backup /folderlocation/ --aws_s3upload --amz_sns --rmv_localfl\r\n\r\nRequirements\r\n------------\r\n\r\n- GDAL >= 1.11.\r\n- PostgreSQL with PostGIS (1).\r\n- Psycopg2 Python library (1).\r\n- Python interface to Amazon Web Services (Boto) (2).\r\n\r\n(1) Only if you want to use --postgis\\_backup parameter.\r\n(2) Only if you want to use --aws\\_s3upload parameter.\r\n\r\nAbout author\r\n------------\r\n\r\nDeveloped by Cayetano Benavent. GIS Analyst at Geographica.\r\n\r\nhttp://www.geographica.gs\r\n\r\nLicense\r\n-------\r\n\r\nThis program is free software; you can redistribute it and/or modify it\r\nunder the terms of the GNU General Public License as published by the\r\nFree Software Foundation; either version 2 of the License, or (at your\r\noption) any later version.\r\n\r\n.. |PyPI version| image:: https://badge.fury.io/py/cartodb_backup.svg\r\n :target: https://badge.fury.io/py/cartodb_backup", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/GeographicaGS/CartoDB_Backup", "keywords": "cartodb GIS postgis", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "cartodb_backup", "package_url": "https://pypi.org/project/cartodb_backup/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cartodb_backup/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/GeographicaGS/CartoDB_Backup" }, "release_url": "https://pypi.org/project/cartodb_backup/0.1/", "requires_dist": null, "requires_python": null, "summary": "Python CLI to make a backup of an entire CartoDB domain to SQL dump file (zipped). Optionally you can restore SQL dumped file to a new (created) PostGIS DB. Also you can upload sql files to Amazon S3.", "version": "0.1" }, "last_serial": 2134070, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "d8b48b447f2b290a65755001f443e84d", "sha256": "c30ce98ff7f502d776a42361dbf2c5e95e4f1d32c40bb39f9ad5dca228306593" }, "downloads": -1, "filename": "cartodb_backup-0.1.tar.gz", "has_sig": false, "md5_digest": "d8b48b447f2b290a65755001f443e84d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6462, "upload_time": "2015-11-17T00:49:05", "url": "https://files.pythonhosted.org/packages/7c/dc/dcb989a7ffb1718bdb72eb4c20aac98ccb274ce901e5042f14d0ddb7b523/cartodb_backup-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d8b48b447f2b290a65755001f443e84d", "sha256": "c30ce98ff7f502d776a42361dbf2c5e95e4f1d32c40bb39f9ad5dca228306593" }, "downloads": -1, "filename": "cartodb_backup-0.1.tar.gz", "has_sig": false, "md5_digest": "d8b48b447f2b290a65755001f443e84d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6462, "upload_time": "2015-11-17T00:49:05", "url": "https://files.pythonhosted.org/packages/7c/dc/dcb989a7ffb1718bdb72eb4c20aac98ccb274ce901e5042f14d0ddb7b523/cartodb_backup-0.1.tar.gz" } ] }