Summary
Copies the contents of a mobile geodatabase to a new file geodatabase.
Usage
A mobile geodatabase uses SQLite and can be used in disconnected workflows in ArcGIS Runtime apps. This tool allows you to copy the data from your mobile geodatabase to a file geodatabase so that it can be used in any client that supports file geodatabases.
Syntax
arcpy.conversion.MobileGdbToFileGdb(in_mobile_gdb, out_file_gdb)
Parameter | Explanation | Data Type |
in_mobile_gdb | The mobile geodatabase that will have its contents copied to a new file geodatabase. | File |
out_file_gdb | The name and location of the output file geodatabase, for example, c:\temp\outputGeodatabases\copiedFGDB.gdb. | File |
Code sample
The following Python window script demonstrates how to use the MobileGdbToFileGdb tool in immediate mode.
import arcpy
arcpy.MobileGdbToFileGdb_conversion('D:\\data\\MobileGDBs\\delta.geodatabase',
'D:\\data\\copiedGDBs\\deltaFGDB.gdb')
The following Python window script demonstrates how to use the MobileGdbToFileGdb 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.MobileGdbToFileGdb_conversion('D:\\MobileData\\replica.geodatabase',
'replica_Copy.gdb')
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes