Backing up automatically to Google Drive in Windows

  • Download Google Drive CLI Client by prasmussen
  • Copy to Windows folder
  • Open cmd > type : gdrive about
  • Open the link in web browser, login to your google account
  • Click allow access and then copy the verification code back to the terminal window
  • Now you can make a batch file to be started automatically using task scheduler, here’s an example to upload only the newest file in a folder :
    SET BackupFolder=D:\TestFolder
    FOR /F "delims=|" %%I IN ('DIR "%BackupFolder%\*.*" /B /O:D') DO SET target=%%I
    gdrive upload "%BackupFolder%\%target%"

PS: You can use this guide to set up a task in task scheduler


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s