Upload to Google Drive without any UI?

后端 未结 4 484
北荒
北荒 2021-02-03 21:57

I am looking to write a server application to upload files to Google Drive. I was previously using the Documents List API, but I see that is deprecated. I\'d like to move to the

4条回答
  •  一整个雨季
    2021-02-03 22:36

    gdrive solution is not working as of now(login problems). So you can now use rclone. You can install it with

    conda install -c conda-forge rclone
    

    Then follow the configuration doc https://rclone.org/drive/
    After configuration you will be able to copy to google drive with this command(stat flags are for progress bar)

    rclone copy  remote: --stats-one-line -P --stats 2s
    

    rclone has many backends included so you can upload not only to google drive

提交回复
热议问题