- 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 :
:Variables
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