scheduling replication

2852
2
08-25-2015 12:13 PM
MarkHelmken1
New Contributor

I am looking for a script example of running a nightly two-way replication synchronization.

2 Replies
AsrujitSengupta
Regular Contributor III
# Import arcpy module
import arcpy


# Local variables:
parent_gdb = "Database Connections\\Parent.sde"
child_gdb = "Database Connections\\Child.sde"


# Process: Synchronize Changes
arcpy.SynchronizeChanges_management(parent_gdb, "DBO.rep_name", child_gdb, "BOTH_DIRECTIONS", "IN_FAVOR_OF_GDB1", "BY_OBJECT", "DO_NOT_RECONCILE")



This is a very basic sample. In case you are not sure, you can use the Model Builder to populate the tool and the parameters, and then export that as a Python script.

Managing DataGeodatabaseEnterprise GISpython snippets

MarkHelmken1
New Contributor

Thank you very much. We are trying to start out simple.

0 Kudos