SiteSync From CommandLine / PowerShell / API call?
Is there a way to kick off SiteSync programmatically? Instead of going into the domain.com/.../Synchronization page?
Thank you.
bump, I'm in the need for this, if anybody has any information, it would be appreciated.
I found this
Sitefinity/services/sitesync/SiteSyncService.svc/help
...so I'll try it and report...
This is supposedly in the 7.x version of Sitefinity (per support).
Hi,
Public SiteSync API has not been fully developed and so for the time being we do not have any documentation on it. However there are some ways you can take advantage of the already available implementations. Please find the attached archive that consists of an excerpt with an example on how you can trigger syncing through API. Please note this is still work in progress and it might be changed in future. I would also suggest to test this on a safe environment.
Regards,
Stefani Tacheva
Telerik
Chris, did you ever accomplish this ?
I got the same document that is posted here but that does not work.
No, we gave up on this since there isn't anything fully baked.
Anyone knows if this is doable in 7.2 ?
it is not doable in 7.1, but I have my SyncHacker.cs class that I want to move off of.
Basically I want to be able to kick a sync when certain user publishes any page (I have my SyncHacker class working, hooked up within the xaml workflow.
I would love to have this feature as well. Anyone had any success?
Hello,
To stop a synchornization you need to work with the SchedulingManager, get the synchronization task and delete it. To get a SiteSyncTask use the code below:
var schMan = SchedulingManager.GetManager();
var task = schMan.GetTaskData().Where(t => t.TaskName ==
"Telerik.Sitefinity.SiteSync.SiteSyncTask"
).SingleOrDefault();