معرفی شرکت ها


cartodb_backup-0.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

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.
ویژگی مقدار
سیستم عامل -
نام فایل cartodb_backup-0.1
نام cartodb_backup
نسخه کتابخانه 0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Cayetano Benavent
ایمیل نویسنده cayetano.benavent@geographica.gs
آدرس صفحه اصلی http://github.com/GeographicaGS/CartoDB_Backup
آدرس اینترنتی https://pypi.org/project/cartodb_backup/
مجوز GPLv2
CartoDB Backup ============== |PyPI version| Python CLI to make a backup of an entire CartoDB domain to SQL dump file (zipped). Optional: - You can restore SQL dumped file to a new (created) PostGIS DB. - You can upload sql files to Amazon S3. - Message from Amazon SNS (Simple Notification Service). Before execute this script you need a cartodbbkconfig.py file properly formed (See cartodbbkconfig\_example.py). cartodbbkconfig.py config parameters: .. code:: python confparams = { "cdb_apikey": "here your api key", "cdb_domain": "here your domain", "sql_folderpath": "here your dump folderpath", "pg_user": "here your db admin user", "pg_pswd": None, # If you leave the password to None, the program will ask you in the command line interface "pg_dbase": "here your db name", "pg_host": "here your db host", "pg_port": "here your db port", "pg_newdatabase": "here your new db name", "aws_acckey": "here your AWS Acces Key", "aws_seckey": "here your AWS Secret Key", "aws_bucket": "here your AWS bucket", "aws_prekey": "here your AWS bucket prefix key", "sns_regname": "here your AWS region name", "sns_arn": "here your SNS ARN", "sns_subject": "My project" } Installation ------------ You can install this package from PYPI: https://pypi.python.org/pypi/cartodb\_backup .. code:: bash $ pip install cartodb_backup You can also install it in this way: .. code:: bash $ python setup.py install Usage ----- Python CLI: .. code:: bash $ cartodb_backup [-h] configfile [--postgis_backup] [--aws_s3upload] [--amz_sns] [--rmv_localfl] positional arguments: configfile Config filepath: /folderlocation/ optional arguments: -h, --help show this help message and exit --postgis_backup POSTGIS_BACKUP PostGIS backup (restoring dump file created) --aws_s3upload Upload file to Amazon S3 --amz_sns Amazon SNS message --rmv_localfl Remove local file after a successfully Amazon S3 upload Example without PostGIS backup: .. code:: bash $ cartodb_backup /folderlocation/ Example with PostGIS backup: .. code:: bash $ cartodb_backup /folderlocation/ --postgis_backup Example with Amazon S3 upload: .. code:: bash $ cartodb_backup /folderlocation/ --aws_s3upload Example with Amazon S3 upload and Amazon SNS (removing local sql folder after upload): .. code:: bash $ cartodb_backup /folderlocation/ --aws_s3upload --amz_sns --rmv_localfl Requirements ------------ - GDAL >= 1.11. - PostgreSQL with PostGIS (1). - Psycopg2 Python library (1). - Python interface to Amazon Web Services (Boto) (2). (1) Only if you want to use --postgis\_backup parameter. (2) Only if you want to use --aws\_s3upload parameter. About author ------------ Developed by Cayetano Benavent. GIS Analyst at Geographica. http://www.geographica.gs License ------- This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. .. |PyPI version| image:: https://badge.fury.io/py/cartodb_backup.svg :target: https://badge.fury.io/py/cartodb_backup


نحوه نصب


نصب پکیج whl cartodb_backup-0.1:

    pip install cartodb_backup-0.1.whl


نصب پکیج tar.gz cartodb_backup-0.1:

    pip install cartodb_backup-0.1.tar.gz