# colabrsync
Run rsync periodically in the background on Google Colab.
## Usage
```python
!pip install colabrsync
from google.colab import drive
drive.mount('/content/drive')
!mkdir -p /content/outputs
!mkdir -p /content/drive/MyDrive/outputs
from colabrsync import RsyncMirror
rsm = RsyncMirror('/content/outputs/', '/content/drive/MyDrive/outputs/')
!diff -ur /content/outputs /content/drive/MyDrive/outputs
!touch /content/outputs/newfile.txt
!diff -ur /content/outputs /content/drive/MyDrive/outputs
!sleep 60
!diff -ur /content/outputs /content/drive/MyDrive/outputs
del rsm
!ls -l /content/outputs /content/drive/MyDrive/outputs
```
## License
MIT License, See LICENSE file.
## Author
Susumu OTA
Raw data
{
"_id": null,
"home_page": "https://github.com/susumuota/colabrsync",
"name": "colabrsync",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "rsync,colab,Google Colab",
"author": "Susumu OTA",
"author_email": "1632335+susumuota@users.noreply.github.com",
"download_url": "https://files.pythonhosted.org/packages/4b/ef/797fbe5e7af9ac4f3de0cdbf9fb48b6ae79defbaafb6b5d49e5f6eebc29c/colabrsync-0.2.0.tar.gz",
"platform": null,
"description": "# colabrsync\n\nRun rsync periodically in the background on Google Colab.\n\n## Usage\n\n```python\n!pip install colabrsync\n\nfrom google.colab import drive\ndrive.mount('/content/drive')\n\n!mkdir -p /content/outputs\n!mkdir -p /content/drive/MyDrive/outputs\n\nfrom colabrsync import RsyncMirror\n\nrsm = RsyncMirror('/content/outputs/', '/content/drive/MyDrive/outputs/')\n\n!diff -ur /content/outputs /content/drive/MyDrive/outputs\n\n!touch /content/outputs/newfile.txt\n\n!diff -ur /content/outputs /content/drive/MyDrive/outputs\n\n!sleep 60\n\n!diff -ur /content/outputs /content/drive/MyDrive/outputs\n\ndel rsm\n\n!ls -l /content/outputs /content/drive/MyDrive/outputs\n```\n\n## License\n\nMIT License, See LICENSE file.\n\n## Author\n\nSusumu OTA\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Run rsync periodically in the background on Google Colab.",
"version": "0.2.0",
"split_keywords": [
"rsync",
"colab",
"google colab"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "6033c5887d3e6eda4e5d6cbdc38e8403",
"sha256": "362ed0b19373e86bb080b5d3dea6a95d19379204ce06c75183c07f8e5b98574f"
},
"downloads": -1,
"filename": "colabrsync-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6033c5887d3e6eda4e5d6cbdc38e8403",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 2916,
"upload_time": "2022-12-12T17:35:27",
"upload_time_iso_8601": "2022-12-12T17:35:27.933936Z",
"url": "https://files.pythonhosted.org/packages/c8/ca/f720f7e5091a8341b311b3e4db85001da0bbbe694d05355cd74986d30e0e/colabrsync-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "1f72f52aa420a520b8d9d11efa2b6a7e",
"sha256": "80c7902a3dc1887e95ab3e7038a8da2e1e8b826418081f0a6dfafc83f72c2d65"
},
"downloads": -1,
"filename": "colabrsync-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "1f72f52aa420a520b8d9d11efa2b6a7e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 2600,
"upload_time": "2022-12-12T17:35:30",
"upload_time_iso_8601": "2022-12-12T17:35:30.288840Z",
"url": "https://files.pythonhosted.org/packages/4b/ef/797fbe5e7af9ac4f3de0cdbf9fb48b6ae79defbaafb6b5d49e5f6eebc29c/colabrsync-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2022-12-12 17:35:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "susumuota",
"github_project": "colabrsync",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "colabrsync"
}