Using Python Scripts to work on Gdrive via Google Co-Lab


I was looking for a way to copy shared folders in gdrive.
Google requires you to download first and then copy - which is of course lot of work and lot of
broadband DATA
- someone suggested you could do this through 
google colab.


  1. Create a new Google Colaboratory Notebook
  2. Mount your Google Drive
    from google.colab import drive
    drive.mount('/gdrive')
    
  3. Copy via shell
    !cp -r '/gdrive/My Drive/src/.' '/gdrive/My Drive/dest'
    
improve this answer
I just had exactly the same issue. And I copied everything successfully via this open-source service: https://github.com/ericyd/gdrive-copy
After you finish your copy, do remember to revoke your granted permission to this app.

Comments

Popular posts from this blog

How to open a data file in CDT

Met data Automation Report

Extracting Data points using Get Data Graph Digitizer