Since SimpleSync is command line based. You can use any number of methods to schedule synchronizations. One of the easier methods is to use the NT 4.0/2000/2003 Scheduler service and a batch file.
Here is an example of the same connections if they are in two folders (In/Out) instead of using naming conventions
Example Script #2 – Multiple connections per command
Here is an example of a batch script to kick off a subset of SimpleSync v4.0 connections with a single command.
c:
cd \SimpleSync-v4\Programs
for /D %%D in (..\connections\in*.) DO ..\Programs\shell.exe "%%D"
for /D %%D in (..\connections\out*.) DO ..\Programs\shell.exe "%%D"
In the above example, naming conventions are used to group connections…all connections that load the master are prefixed with "in". All connections that push from the master, out to other directories, are prefixed with "out". Using this two line batch script, any connection created with a prefix of "in" or "out" are automatically included in the execution of the scheduled batch.
Here is an example of the same connections if they are in folders, instead of using naming conventions:
c:
cd \SimpleSync-v4\Programs
for /D %%D in (..\connections\IN\*.) DO ..\Programs\shell.exe "%%D"
for /D %%D in (..\connections\OUT\*.) DO ..\Programs\shell.exe "%%D"
Scheduling Batch Execution
Start the Scheduler Service
Start/Settings/Control Panel/Services
Or, configure Startup to make the service start at boot up.
Lets say that your batch file is called \SimpleSync-v4\runsync.bat and you would like to have it run every day at 9:00 am. This can be done buy using the AT command in an CMD window. For syntax on the at command type 'at /?' from the CMD prompt.
at \\MyServer 9:00 /EVERY:SU,M,T,W,TH,F,S "C:\SimpleSync-v4\runsync.bat"
To view the scheduled events type "at". Remember, a log file is generated with each run. Review these logs regularly to ensure your connection is running properly.
*SimpleSync is single thread so more than one occurrence of a program can run at a time. Take your bandwidth into consideration when attempting to run more than one sync.
Scheduling Log File Management
See Scheduling Log File Management for information on automating your Log File Management.