I have a server thats does automatic backups, now i need to sync that backup files to google drive, but i dont want to login every day into windows server so google drive make the sync.
¿Does anyone know a way to sync or script to upload in background without user interacction?
Well i figured out, so i am posting for everyone who needs to run google drive sync app without enter to windows:
now i have to copy the backups files to google drive folder with and cmd script + sheduled task.
You can then manage Google Drive as a service. If you need to edit the settings within Drive log in as the account that the service is running under, stop the service then start Google Drive from the icon in the start menu.
Still, it runs in the background and consumes 3mAh battery.
Service-level features Google Cloud products and services offer a broad range of data protection features such as Backup for GKE, Persistent Disk snapshots, Cloud SQL backups, Filestore backups, and geo-redundant Cloud Storage.
If you are running on a Windows Server 2003 you can try the following to run Drive as a Service:
Download and install Windows Server 2003 resource kit which can be found here
Open a command prompt and run the following:
C:\Program Files (x86)\Windows Resource Kits\Tools>instsrv GoogleDrive "c:\Program Files (x86)\Windows Resource Kits\Tools\srvany.exe"
Next is to change the user for witch the newly added service “GoogleDrive” runs under. Change this to Administrator.
Type the following command in the command prompt to open the services snap in console:
services.msc
Choose properties on GoogleDrive service. Click on tab “Log On” Click “This account”, and select Admimistrator. Set appropriate password. Click Apply and OK
Next is to setup some registry settings for the service. Open the registry editor by typing the following command into the command prompt:
regedit
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GoogleDrive
Create a new key “Parameters”
Add a new string value “Application”
, (type REG_SZ). Set the value to the path to C:\Program Files (x86)\Google\Drive\googledrivesync.exe /autostart
.
Close Registry Editor
Go back to Services, and start the GoogleDrive service
This was adapted from an article about running Dropbox as a service which can be found here.
Essentially the process is to create a Windows service using the 'srvany.exe' which is a Windows service wrapper that will run any program as a service.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With