Skip to content

Run rsync periodically in the background on Google Colab.

License

Notifications You must be signed in to change notification settings

susumuota/colabrsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Run rsync periodically in the background on Google Colab.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages