TwistedHelixis Posted November 5, 2019 Posted November 5, 2019 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?
dhicks Posted November 5, 2019 Posted November 5, 2019 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.
TwistedHelixis Posted November 5, 2019 Author Posted November 5, 2019 @dhicks thanks I will take a look. For any other posters - I am only using the backup part of the software and disable sync. Basically I am backing up the final few folders on our local server to Google Drive \ computers.
TwistedHelixis Posted November 5, 2019 Author Posted November 5, 2019 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)
TwistedHelixis Posted November 6, 2019 Author Posted November 6, 2019 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now