[All-postdocs] Google Drive Folder Automation
Julie van der Hoop
jvanderhoop at whoi.edu
Tue Dec 6 08:02:58 EST 2016
WHOI now offers infinite storage on Google Drive with your @whoi account (basics here <http://whoi-it.whoi.edu/google-drive/>). Transfer speed is slow, and using the web interface leads to some issues in transferring subfolders. But - here’s a command line workaround from the Helpdesk to automate the process (they’ll be posting these online eventually but wanted to forward once I’d tested them out).
Using RCLONE to upload Files
First Download Rclone: http://rclone.org/downloads/ <http://rclone.org/downloads/>
Then Extract it to a folder you can easily reach with Command Prompt
Configuration:
You must setup a “remote” before you can upload files. A “remote” is what rclone refers to your google drive account as.
In a Command Prompt Navigate to the folder where you extracted rclone.
Run the command “rclone.exe config”
You will receive a series of prompts to setup the remote. Prompts and answers(In Red) are found below
n/s/q> n
name> username(Make this whatever you want as long as you can recognize it as your Google account)
Storage> 7
client_id> Leave Blank(Just Press Return)
client_secret> Leave Blank(Just Press Return)
Remote Config y/n> y
Your computer will then open your default browser and ask you to sign into your Google Account. Sign in and wait for the “Allow” button to turn blue, then press it. You can then close the web browser. Then go back to the command prompt.
y/e/d> y
e/n/d/s/q> q
Uploading Files
Now that rclone has been configured you can start uploading files.
First Create a folder on Google Drive to upload your files to. When pushing a directory up to Google rclone will not create the folder you are copying it will just move all its contents up so you need to create the folder up there first.
Then run the rclone copy command from a Command prompt that is in the rclone directory.
Syntax: “rclone.exe copy c:\folder RemoteName:\Folder_on_Google” -v
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.whoi.edu/pipermail/all-postdocs/attachments/20161206/c8cd5657/attachment.htm
More information about the All-postdocs
mailing list