{ "info": { "author": "Andrei Neagu", "author_email": "it.neagu.andrei@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: System :: Archiving", "Topic :: System :: Archiving :: Backup" ], "description": "# coldsync\n\n[![Build Status](https://travis-ci.org/GitHK/coldsync.svg?branch=master)](https://travis-ci.org/GitHK/coldsync)\n[![Coverage Status](https://coveralls.io/repos/github/GitHK/coldsync/badge.svg?branch=master)](https://coveralls.io/github/GitHK/coldsync?branch=master)\n[![PyPI version](https://badge.fury.io/py/coldsync.svg)](https://badge.fury.io/py/coldsync)\n![License](https://img.shields.io/pypi/l/coldsync.svg)\n![Downloads](https://img.shields.io/pypi/dm/coldsync.svg)\n\n[![Python 3.4](https://img.shields.io/badge/python-3.4-blue.svg)](https://www.python.org/downloads/release/python-340/)\n[![Python 3.5](https://img.shields.io/badge/python-3.5-blue.svg)](https://www.python.org/downloads/release/python-350/)\n[![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)\n[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)\n[![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380/)\n[![Pypy 3.5](https://img.shields.io/badge/pypy-3.5-blue.svg)](http://doc.pypy.org/en/latest/release-v7.0.0.html)\n\nBackup important files to cold storage.\n\n pip install coldsync\n\n`Google Cloud Storage` is supported for now. The API is can be extend to add support other providers. Inside the storage module extend the `BaseStorage` \nto add support for other providers.\n\n \n## Usage\n\nTo use the commands you must first setup the following environment variables:\n\n- **CS_DATA_CENTER** \n- **CS_PROJECT_NAME**\n- **CS_ENV_NAME** \n- **CS_GOOGLE_SERVICE_ACCOUNT_PATH**\n\nWhere **CS_DATA_CENTER**, **CS_PROJECT_NAME**, **CS_ENV_NAME** are used to identify the \nbucket in which files are stored.\n\nThe **CS_GOOGLE_SERVICE_ACCOUNT_PATH** must point to your google `credentials.json` file.\n\n## Examples\n\n**Show all files inside the bucket**\n\n CS_DATA_CENTER='central-europe' \\\n CS_PROJECT_NAME='coold-data-storage' \\\n CS_ENV_NAME='production' \\\n CS_GOOGLE_SERVICE_ACCOUNT_PATH='credentials.json' \\\n coldsync list-files\n \n**Upload a file to the bucket**\n\nYou may need to mount the file in the docker container in order to have access to it.\n\n CS_DATA_CENTER='central-europe' \\\n CS_PROJECT_NAME='coold-data-storage' \\\n CS_ENV_NAME='production' \\\n CS_GOOGLE_SERVICE_ACCOUNT_PATH='credentials.json' \\\n coldsync upload-file sample.jpg --remote_path 'thecat.jpg'\n\n**Download a file from the bucket**\n\nYou may need to mount the download directory in the docker container in order to \nhave access to the files which have been downloaded from your local file system.\n\n CS_DATA_CENTER='central-europe' \\\n CS_PROJECT_NAME='coold-data-storage' \\\n CS_ENV_NAME='production' \\\n CS_GOOGLE_SERVICE_ACCOUNT_PATH='credentials.json' \\\n coldsync download-file 'thecat.jpg' thecat.jpg\n\n**Deleting a file from the bucket**\n\n CS_DATA_CENTER='central-europe' \\\n CS_PROJECT_NAME='coold-data-storage' \\\n CS_ENV_NAME='production' \\\n CS_GOOGLE_SERVICE_ACCOUNT_PATH='credentials.json' \\\n coldsync delete-file 'thecat.jpg'\n\n## Tests\n\nRunning test suite\n \n python setup.py test", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "GPLv3", "maintainer": "", "maintainer_email": "", "name": "coldsync", "package_url": "https://pypi.org/project/coldsync/", "platform": "", "project_url": "https://pypi.org/project/coldsync/", "project_urls": null, "release_url": "https://pypi.org/project/coldsync/0.0.4/", "requires_dist": null, "requires_python": "", "summary": "Used to upload files to cold storage", "version": "0.0.4" }, "last_serial": 5419247, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3cbfe983d3428c6712a4d771cb3a32ce", "sha256": "bbeee1f4081ba12a64a72757e57c1a4219611cda05e5b6f4558b488483cedafd" }, "downloads": -1, "filename": "coldsync-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3cbfe983d3428c6712a4d771cb3a32ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3815, "upload_time": "2019-06-17T07:31:57", "url": "https://files.pythonhosted.org/packages/9c/ae/96f9465b5ef921cdd2b5203602050b0a4077db14dae214d5d1845eb222fc/coldsync-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9463aea29f8192cc0ef0c5ab9950c2c2", "sha256": "8890eb912fd3cc0357d14cc5cca2ecde0d2730b125204e6ecfcd0a538dd1ceef" }, "downloads": -1, "filename": "coldsync-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9463aea29f8192cc0ef0c5ab9950c2c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4194, "upload_time": "2019-06-17T07:37:14", "url": "https://files.pythonhosted.org/packages/7f/00/978e07a62c9304bf2439cb4eaa31e230a2dfacd222ba259f4f8135c9ad23/coldsync-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "2bbd2cdb2c7dbacef7476fc8103aaf00", "sha256": "2e1c001e93ec678f9a7a9560aeeea205fabd805c931b05a41b90967e3c624f55" }, "downloads": -1, "filename": "coldsync-0.0.3.tar.gz", "has_sig": false, "md5_digest": "2bbd2cdb2c7dbacef7476fc8103aaf00", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4248, "upload_time": "2019-06-17T07:52:35", "url": "https://files.pythonhosted.org/packages/dd/d0/b72b41d8c45f13392b5634a626d08387bc1e51f05156b4de024fad771c4f/coldsync-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "2c53d903d85636d7eb03bb74bb5c91bd", "sha256": "0ec8205c1c074cfa9ac6fc02d0bd0d478edd42ca45238db1652c216012007467" }, "downloads": -1, "filename": "coldsync-0.0.4.tar.gz", "has_sig": false, "md5_digest": "2c53d903d85636d7eb03bb74bb5c91bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4811, "upload_time": "2019-06-19T08:44:01", "url": "https://files.pythonhosted.org/packages/e6/72/268ed703f004c664098633f77607b8597d12d0b8833a03a2313286b3d953/coldsync-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2c53d903d85636d7eb03bb74bb5c91bd", "sha256": "0ec8205c1c074cfa9ac6fc02d0bd0d478edd42ca45238db1652c216012007467" }, "downloads": -1, "filename": "coldsync-0.0.4.tar.gz", "has_sig": false, "md5_digest": "2c53d903d85636d7eb03bb74bb5c91bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4811, "upload_time": "2019-06-19T08:44:01", "url": "https://files.pythonhosted.org/packages/e6/72/268ed703f004c664098633f77607b8597d12d0b8833a03a2313286b3d953/coldsync-0.0.4.tar.gz" } ] }