Summary
Copies the contents of a Runtime geodatabase into a new file geodatabase.
Usage
Syntax
CopyRuntimeGdbToFileGdb_conversion (in_file, out_file)
Parameter | Explanation | Data Type |
in_file | Runtime geodatabase that will be copied to a file geodatabase. | File |
out_file | The output file geodatabase name and location. For example: c:/temp/outputGeodatabases/copiedFGDB.gdb. | File |
Code sample
CopyRuntimeGdbToFileGdb example 1: (Python window)
The following Python window script demonstrates how to use the CopyRuntimeGdbToFileGdb tool in immediate mode.
import arcpy
arcpy.CopyRuntimeGdbToFileGdb_conversion(r"D:\data\RuntimeGDBs\delta.geodatabase", 'D:\data\copiedGDBs\deltaFGDB.gdb')
CopyRuntimeGdbToFileGdb example 2: (stand-alone script)
The following Python window script demonstrates how to use the CopyRuntimeGdbToFileGdb tool in a stand alone script using the workspace environment.
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/data"
# Execute CopyRuntimeGdbToFileGdb
arcpy.CopyRuntimeGdbToFileGdb_conversion("D:\runtimedata\replica.geodatabase", 'replica_Copy.gdb')
Environments
Licensing information
- ArcGIS Desktop Basic: Yes
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes