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.
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
from arcpy import env
# Set environment settings
env.workspace = "C:/data"
# Execute CopyRuntimeGdbToFileGdb
arcpy.CopyRuntimeGdbToFileGdb_conversion("D:\runtimedata\replica.geodatabase", 'replica_Copy.gdb')
Environments
Licensing information
- ArcGIS for Desktop Basic: Yes
- ArcGIS for Desktop Standard: Yes
- ArcGIS for Desktop Advanced: Yes