Sync Google Drive when not logged in
Have you tried the Task Scheduler?
http://www.nekocreation.com/sync-google-drive-when-not-logged-in/
From above:
Google Drive will only sync your files automatically when you are logged in to your account on Windows. If you want Google Drive to start even before you are logged in to your account, you can add it to Task Scheduler.
- On Windows 7, go to Start > All Programs > Accessories > System Tools > Task Scheduler
- Click on Create Task…
- Under General Tab
- Name: Google Drive Sync
- Security options: Run whether user is logged on or not
- Under Triggers Tab
- Click ‘New…’ button
- Begin the task: At startup
- Click ‘OK’ button
- Under Actions Tab
- Click ‘New…’ button
- Click ‘Browse…’ button
- Locate googledrivesync.exe (By default it is under C:\Program Files (x86)\Google\Drive)
- Click ‘OK’ button
- Under Settings Tab
- Uncheck ‘Stop the task if it runs longer …’
- Click ‘OK’ button to save the task
I believe you would have to run the sync client as a service. To do so, you can use Sc.exe.
I can't test this but the syntax should be something like this (from an elevated command prompt):sc create GoogleDriveService displayName="Google Drive Service Wrapper" start=auto obj=WINDOWS_USERNAME password=PASSWORD binPath=PATH_TO_GOOGLE_DRIVE_EXECUTABLE
Piece by piece:sc
: creates the servicecreate
: command to create service (see also, delete)GoogleDriveService
: a string you make up to give the service a namedisplayName="Google Drive Service Wrapper"
: string shown under Name column of services.mscstart=auto
: start on bootobj=WINDOWS_USERNAME
: Windows account that is syncing with Google Drivepassword=PASSWORD
binPath=PATH_TO_GOOGLE_DRIVE_EXECUTABLE
@martin There's a bug in Googledrivesync that disables restarts if the "Start on login" switch is enabled in the preferences panel. That's why it's flashing when you restart it. (I would have put this message in the comment thread where it belongs but don't have the points to do so.)
To use Window's task scheduler to control GoogleDriveSync, disable the auto start option in the app's preference panel.
I specifically don't want GoogleDriveSync running most of the time as it interferes with other scripts that create and delete temporary files in the folders GDS backs up. Rather than rewrite the scripts to use a temporary folder outside of GDS's purview, I use the Task Scheduler to control when GDS does and doesn't run.