Jump to content

Recommended Posts

Posted

I need to get Google's Backup and Sync running on a server even if the user is logged off.

 

I did get it working using a task scheduler but have noticed that after a while this just stops working, I think task scheduler might have some extended usage disconnect feature, but not sure.

 

So I have started looking for ways to run the software as a service. I found 'Always up' but this is not free, if it was something I was going to use a lot I would pay. I also found NSSM but the latest release is 2014.

 

Anyone have any ideas?

Posted
I need to get Google's Backup and Sync running on a server even if the user is logged off.

 

You can, of course, have a specific user auto-logon to a server, so that user is always logged on. I've found that actually works okay for syncing a Windows shared folder to a Google Drive shared drive / folder - set up a dedicated "storage" user or similar and have that user own the shared Google folder and the auto-login.

 

Otherwise, I've found that rclone gives more flexibility:

 

https://rclone.org/commands/rclone_mount/

 

Mounting a Google Drive isn't the same as backup & sync - you don't get a full local copy. You could have a task that ran an rclone sync periodically, though, that would be pretty much the same.

Posted

Just had another thought..... As task scheduler was almost working, I have just created a separate task to run once a day that will force stop the original task using taskkill.exe.

 

I will post back with an update :0)

Posted

Update - All seems to be working how I need :0)

 

First task runs at 7:30am which starts Backup and Sync. This task is set with 'when system starts & on schedule, so it should work while nobody is logged in or if the server has rebooted.

 

The next task runs at 7am and stops the first task and also makes sure the Backup & Sync application has been terminated.

 

Than at 7:30 the first task runs again.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...