Skip to main content

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


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)

Uploaded Source

Built Distribution

colabrsync-0.2.0-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page