Upload and update files in google drive via cmd

2020-03-06 02:59发布

问题:

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

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

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.

So far I have:Uploading Docs to Google via cmd

回答1:

Hope this helps:

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.



回答2:

A python script is now available. recursive_upload.py

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