Stop syncing during business hours

Get help for specific problems
Posts: 1
Joined: 16 Jul 2020

fropdaddy

We have a Synology NAS setup with a VPN for multiple users working from home to connect to in order to sync (update) new files to their local hard drive(s). We would like for this to happen overnight and we will be able to setup a batch file to automatically run at a certain time of the evening to reduce network congestion during the day.
There is an issue as the syncing of the files may not finish in time before the start of the next business day. Is there a way to have the batch file end at a certain time such as 7:30 am so as not to interfere with the network speeds during business hours?
Also, as several users will be syncing the same files at the same time, my understanding is that we would need to go to expert settings and “<LockDirectoriesDuringSync Enabled="false"/>” correct?
User avatar
Posts: 2272
Joined: 22 Aug 2012

Plerry

A scheduled stop of the sync task is not built into FFS, so you would need to do that by other means.
But instead, you may try setting the RunWithBackgroundPriority flag to True.
This will allow FFS to continue to run (if it had not finished yet), but will not congest your system(s).

Particularly as "several users will be syncing the same files at the same time", setting the LockDirectoriesDuringSync flag to False is generally a bad idea for the reasons described in the Manual section on Expert Settings.
However, if those "several users" only need to read the same files in the shared location, and not write these files, you may safely disable directory locking.
But only you can assess this, based on your (or all users) sync settings.