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 hashes)
Built Distribution
Close
Hashes for colabrsync-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362ed0b19373e86bb080b5d3dea6a95d19379204ce06c75183c07f8e5b98574f |
|
MD5 | 6033c5887d3e6eda4e5d6cbdc38e8403 |
|
BLAKE2b-256 | c8caf720f7e5091a8341b311b3e4db85001da0bbbe694d05355cd74986d30e0e |