{ "info": { "author": "Bystroushaak", "author_email": "bystrousak[at]kitakitsune.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.7" ], "description": "ownCloud backup\n===============\n\nThis project is used for uploading the backups to the ownCloud and managing old backups.\n\nHow it works\n------------\n\nBy default, script expects one *file* argument, which will be uploaded to ownCloud with ``%Y.%m.%d_`` time prefix into `remote_path` directory.\n\nWhen the file is uploaded, scripts requests listing of all other files in selected `remote_path`, then reads time informations from names and then removes old files.\n\nProcess of removing of old files is defined to keep following files:\n\n- all files from last month\n- one file per week for two-months-before\n- one file per two weeks for three-months-before\n\nand to remove all older files.\n\nConfiguration\n-------------\n\nThere is possibility of configuration of following variables using `conf` files ``owncloud_backup.cfg`` or ``~/.owncloud_backup.cfg``::\n\n [Login]\n user=login@owncloud.tld\n pass=password\n url=https://owncloud.cesnet.cz\n\n [Config]\n remote_path=/backups\n no_timestamp=false\n\nAll values in `Config` section and `url` variable from `Login` section is optional (defaults are shown in this example).\n\n`no_timestamp` will instruct the script to stop putting the timestamp prefix to uploaded files. In that case, it is expected that such files will contain the timestamp added manually, or they will be ignored in process of elimination of old files.\n\nCommandline arguments\n---------------------\n\nAll variables defined in configuration file may be also added using commandline arguments::\n\n usage: owncloud_backup.py [-h] [-u USERNAME] [-p PASSWORD] [--url URL]\n [-r REMOTE_PATH] [-n]\n FILENAME\n\n This program may be used to perform database backups into ownCloud.\n Configuration file in ini format is expected in `owncloud_backup.cfg` or\n `~/.owncloud_backup.cfg` paths.\n\n positional arguments:\n FILENAME Upload FILENAME into the ownCloud.\n\n optional arguments:\n -h, --help show this help message and exit\n -u USERNAME, --username USERNAME\n Username of the ownCloud user.\n -p PASSWORD, --password PASSWORD\n Password of the ownCloud user.\n --url URL URL of the ownCloud service. Default\n `https://owncloud.cesnet.cz`.\n -r REMOTE_PATH, --remote-path REMOTE_PATH\n Path on the server. Default `/backups`.\n -n, --no-timestamp By default, the script adds `%Y.%m.%d_` prefix to each\n uploaded file.\n\nInstallation\n------------\n\nModule is hosted at `PYPI `_, and\ncan be installed using `PIP`_::\n\n sudo pip install owncloud_backup\n\n.. _PIP: http://en.wikipedia.org/wiki/Pip_%28package_manager%29\n\nInstallation on SuSe\n--------------------\n\nIn case that you are using ancient Suse installation with old python versions and no PIP, you may install it with following commands::\n\n wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-20.0.zip\n unzip setuptools-20.0.zip\n cd setuptools-20.0/\n python setup.py install\n easy_install pip==1.2\n pip install -U owncloud_backup\n\n\nSource code\n+++++++++++\n\nProject is released under the MIT license. Source code can be found at GitHub:\n\n- https://github.com/NLCR/owncloud_backup\n\nUnittests\n+++++++++\n\nAlmost every feature of the project is tested by unittests. You can run those\ntests using provided ``run_tests.sh`` script, which can be found in the root\nof the project.\n\nIf you have any trouble, just add ``--pdb`` switch at the end of your ``run_tests.sh`` command like this: ``./run_tests.sh --pdb``. This will drop you to `PDB`_ shell.\n\n.. _PDB: https://docs.python.org/2/library/pdb.html\n\nRequirements\n^^^^^^^^^^^^\n\nThis script expects that packages pytest_ is installed. In case you don't have it yet, it can be easily installed using following command::\n\n pip install --user pytest\n\nor for all users::\n\n sudo pip install pytest\n\n.. _pytest: http://pytest.org/\n\n\nExample\n^^^^^^^\n::\n\n ./run_tests.sh \n ============================= test session starts ==============================\n platform linux2 -- Python 2.7.6, pytest-2.8.2, py-1.4.30, pluggy-0.3.1\n rootdir: /home/bystrousak/Plocha/Dropbox/c0d3z/prace/owncloud_backup, inifile: \n plugins: cov-1.8.1\n collected 3 items \n\n tests/test_backup.py ...\n\n =========================== 3 passed in 0.47 seconds ===========================\n\n\nChangelog\n=========\n\n0.1.6\n-----\n - Fixed bug in removing old files on remote server.\n\n0.1.5\n-----\n - Added mute of the InsecurePlatformWarning.\n\n0.1.4\n-----\n - Fixed bugs in argument parsing priority.\n\n0.1.3\n-----\n - Added few other python2.6 updates.\n\n0.1.2\n-----\n - Removed set comprehension to support python2.6.\n\n0.1.1\n-----\n - Added scripts declaration into setup.py.\n\n0.1.0\n-----\n - Project created.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/NLCR/owncloud_backup", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "owncloud_backup", "package_url": "https://pypi.org/project/owncloud_backup/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/owncloud_backup/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/NLCR/owncloud_backup" }, "release_url": "https://pypi.org/project/owncloud_backup/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "backupper for uploading and managing files in ownCloud.", "version": "0.1.6" }, "last_serial": 2039868, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "122574e01858ab8c6ec319570b0bbb40", "sha256": "a34093982aec9c51c0ee122f8401ef968e9ae15904b233934ea7820a41a43597" }, "downloads": -1, "filename": "owncloud_backup-0.1.0.tar.gz", "has_sig": false, "md5_digest": "122574e01858ab8c6ec319570b0bbb40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7878, "upload_time": "2016-02-11T10:45:28", "url": "https://files.pythonhosted.org/packages/01/a4/fecc28a24c53db998ea68e0c64ad292a595859ebee0e295476869f71c7c6/owncloud_backup-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "c2197e3829ddd832346c535421d2004e", "sha256": "3a33665591132f3a64732de340a65ca6ad402917dac2c264e41a21fb932f317f" }, "downloads": -1, "filename": "owncloud_backup-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c2197e3829ddd832346c535421d2004e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7905, "upload_time": "2016-02-11T10:50:32", "url": "https://files.pythonhosted.org/packages/74/0e/461e0d30bce149c2707f79ffb4bd8b19df8458ece37a9db872be8a980047/owncloud_backup-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "8405535aec9e39e52a8366b3b7649e08", "sha256": "adb8dcd05e6fc55b208073fbdba00788c02fd90fd4bee1bf50cee6f4d4b8437c" }, "downloads": -1, "filename": "owncloud_backup-0.1.2.tar.gz", "has_sig": false, "md5_digest": "8405535aec9e39e52a8366b3b7649e08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8006, "upload_time": "2016-02-11T11:40:13", "url": "https://files.pythonhosted.org/packages/58/3d/b70fe5cb885ed8d0251d8d06621c8a3ea60cf1c13cefe79e8a0f0a181fb9/owncloud_backup-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "3a37d4cdff1ec7317927cc4fc1b93918", "sha256": "4a653992eeedfdff849a682a7e9b2dcc699186f8f5e2b49965a0b6e8fb17168f" }, "downloads": -1, "filename": "owncloud_backup-0.1.3.tar.gz", "has_sig": false, "md5_digest": "3a37d4cdff1ec7317927cc4fc1b93918", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8068, "upload_time": "2016-02-11T11:53:21", "url": "https://files.pythonhosted.org/packages/22/09/3102fe5cc00abe3b58014ce6c563924336c6e2796ff8ef22b8ad6b91e817/owncloud_backup-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "2dd9a53ccf3a2f7c10738179967b797b", "sha256": "f286885742609e865beac906b07b5f7752f28d861068255e632c4d586d347207" }, "downloads": -1, "filename": "owncloud_backup-0.1.4.tar.gz", "has_sig": false, "md5_digest": "2dd9a53ccf3a2f7c10738179967b797b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8134, "upload_time": "2016-02-11T11:58:49", "url": "https://files.pythonhosted.org/packages/00/b5/4a72f9bc0797380f57f82e94df4b48f6aeb8779e83685aa98057f9502987/owncloud_backup-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "57b9e490bc2fc05cb837bedb5ab6a924", "sha256": "f5168c5a9ab27439958faea04af97f8b835aa9a9665c4b5fceeb32b8bb26c851" }, "downloads": -1, "filename": "owncloud_backup-0.1.5.tar.gz", "has_sig": false, "md5_digest": "57b9e490bc2fc05cb837bedb5ab6a924", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8228, "upload_time": "2016-02-11T12:26:04", "url": "https://files.pythonhosted.org/packages/cb/cf/bfffdd0db2c079f7e3a648d557b4b68df8d4a4f487b589f14587c62c268c/owncloud_backup-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "83dd548cc77014c9b6745df62ef8de22", "sha256": "06ab173840971ed6f157a80c44e4a51148c37449618b9e95a3c27434906c1386" }, "downloads": -1, "filename": "owncloud_backup-0.1.6.tar.gz", "has_sig": false, "md5_digest": "83dd548cc77014c9b6745df62ef8de22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8452, "upload_time": "2016-04-01T08:48:00", "url": "https://files.pythonhosted.org/packages/91/7f/abf3289834cc7de9dcda21022417469e1ea8cacfa41e1b8f67ef6f83d88a/owncloud_backup-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "83dd548cc77014c9b6745df62ef8de22", "sha256": "06ab173840971ed6f157a80c44e4a51148c37449618b9e95a3c27434906c1386" }, "downloads": -1, "filename": "owncloud_backup-0.1.6.tar.gz", "has_sig": false, "md5_digest": "83dd548cc77014c9b6745df62ef8de22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8452, "upload_time": "2016-04-01T08:48:00", "url": "https://files.pythonhosted.org/packages/91/7f/abf3289834cc7de9dcda21022417469e1ea8cacfa41e1b8f67ef6f83d88a/owncloud_backup-0.1.6.tar.gz" } ] }