bash 通过cmd上传和更新谷歌驱动器中的文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24554638/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 10:47:04  来源:igfitidea点击:

Upload and update files in google drive via cmd

bashcsvcurlawkgoogle-apps-script

提问by dHumphrey

Is there any script where Google drive will automatically upload, convert and update a .csv file daily?

是否有任何脚本可以让 Google Drive 每天自动上传、转换和更新 .csv 文件?

I followed the script on the JDBC on Googles site but the server is too private and won't connect.

我按照 Google 站点上 JDBC 上的脚本进行操作,但服务器太私密,无法连接。

I have been thinking about sending the files from the command line instead as a work around, any ideas? Bash and/or curl should be used.

我一直在考虑从命令行发送文件作为一种解决方法,有什么想法吗?应该使用 Bash 和/或 curl。

So far I have:Uploading Docs to Google via cmd

到目前为止,我有:通过 cmd 将文档上传到 Google

回答by Rei

Hope this helps:

希望这可以帮助:

http://tech.rgou.net/en/linux-2/backup-script-on-google-drive-for-linux/

http://tech.rgou.net/en/linux-2/backup-script-on-google-drive-for-linux/

To sum it up, the package grive offers you a way to mount your google drive. The rest is just editing the files as if they were on your machine.

总而言之,包 grive 为您提供了一种安装谷歌驱动器的方法。其余的只是编辑文件,就像它们在您的机器上一样。

回答by idobatter

A python script is now available. recursive_upload.py

现在可以使用 python 脚本。recursive_upload.py

It uses googleDriveAccess module. https://github.com/HatsuneMiku/googleDriveAccess/

它使用 googleDriveAccess 模块。 https://github.com/HatsuneMiku/googleDriveAccess/