Run rsync periodically in the background on Google Colab.
Project description
colabrsync
Run rsync periodically in the background on Google Colab.
Usage
!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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
colabrsync-0.2.0.tar.gz
(2.6 kB
view details)
Built Distribution
File details
Details for the file colabrsync-0.2.0.tar.gz
.
File metadata
- Download URL: colabrsync-0.2.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80c7902a3dc1887e95ab3e7038a8da2e1e8b826418081f0a6dfafc83f72c2d65 |
|
MD5 | 1f72f52aa420a520b8d9d11efa2b6a7e |
|
BLAKE2b-256 | 4bef797fbe5e7af9ac4f3de0cdbf9fb48b6ae79defbaafb6b5d49e5f6eebc29c |
File details
Details for the file colabrsync-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: colabrsync-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362ed0b19373e86bb080b5d3dea6a95d19379204ce06c75183c07f8e5b98574f |
|
MD5 | 6033c5887d3e6eda4e5d6cbdc38e8403 |
|
BLAKE2b-256 | c8caf720f7e5091a8341b311b3e4db85001da0bbbe694d05355cd74986d30e0e |