Step 1: Open DataSync (https://github.com/socrata/datasync) and enter in the requisite information. Once all the information is loaded, run the job to make sure it works. After the job has run, select “save job” and save the datasync job.
Step 2: Once the datasync job has been saved, copy the command using the “Copy to Clipboard” option.
Step 2b (optional):DataSync stores the credentials, domain, and app token in a local Windows folder. In the case that a separate user schedules the Windows Task, they will need to open DataSync, enter in their credentials, domain, and app token and then close datasync to save their credentials. This must be done before running the datasync job successfully or using it in Windows Task Scheduler.
Step 3: From the Start menu, in the search box, begin to type “Task Scheduler.” It will show up at the top of the list, double click on it to open the task scheduler.
Step 4: On the right hand menu, select “Create Basic Task…” this will create a new windows task that will run datasync.
Step 5: Create the Name and Description for your task.
Step 6: Select the regularity that you want to run the task. Click Next.
Step 7: Refine the recurrence, setting up the start times and recurrence times.
Step 8: Select “Start a program” and click Next
Step 9: Paste (Ctrl + V) the script that you copied from the datasync job into the Program/Script section.
Step 10: A dialog box will appear offering to run it with the arguments. Allow Java to run by clicking "Yes"
Step 11: Review your task and click “Finish”
Step 12: To test your windows task, simply select the “Task Scheduler Library”
Step 13: Select your newly created task and in the right menu select “Run” The task will run and any errors will show up in the “Last Run Result” column of the top center view box.
*Note: These screenshots were taken using Windows 7 and DataSync version 1.6
VIDEO: Save a DataSync Job and Run from Terminal