0

I would like to copy all the Feature datasets, Feature class and Feature Tables from one sde to another SDE through a ArcPy script. May I know what will be the command line to copy all the features from one SDE to another sde.

None of this is working at my end.

 #Need to copy all the feature datasets, Feature class, Feature tables from one sde to another sde

arcpy.Copy_management(c, sde_OfflineDB_Path)
arcpy.CopyFeatures_management(c, sde_OfflineDB_Path, "", "0", "0", "0")
arcpy.FeatureClassToFeatureClass_conversion(wHydrant, sde_OutPath_WaterSystem, "wHydrant_Hydrant", "LifeCycleStatus = 'Active'", "", "")

try:
    arcpy.CreateReplica_management(in_data=c, in_type="ONE_WAY_REPLICA", out_geodatabase=sde_OfflineDB_Path,
                               out_name="StateReplica", access_type="FULL",
                               initial_data_sender="PARENT_DATA_SENDER",
                               expand_feature_classes_and_tables="ALL_ROWS", reuse_schema="DO_NOT_REUSE",
                               get_related_data="GET_RELATED", geometry_features="",
                               archiving="DO_NOT_USE_ARCHIVING")

try:
arcpy.CreateReplica_management(in_data=c, in_type="ONE_WAY_REPLICA", out_geodatabase=sde_OfflineDB_Path, out_name="StateReplica", access_type="FULL", initial_data_sender="PARENT_DATA_SENDER", expand_feature_classes_and_tables="ALL_ROWS", reuse_schema="DO_NOT_REUSE", get_related_data="GET_RELATED", geometry_features="", archiving="DO_NOT_USE_ARCHIVING")

#???????????????????????????????????????????????????????????

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.