Convert / Copy a PGDB in a FGDB with phyton

2521
2
Jump to solution
08-12-2015 01:36 AM
MikeSchudel1
New Contributor III

Hello everybody

Unfortunately I had GeoNet in finding still no luck here in.
We are looking for a batch or script which copies an existing PGDB with data content in a FGDB or transformed?
This automates the easiest or just as a batch.
Has here a solution?

Many thanks and greetings
Mike

0 Kudos
1 Solution

Accepted Solutions
XanderBakker
Esri Esteemed Contributor

Here the links to the 10.3 Help mentioned by Luke Pinner , since the "#" sign in the URL is still causing the link to direct to the start page of the Help:

In addition, not sure if this would work, but when you select in ArcCatalog (of the Catalog window) the elements of the PGDB and copy them into the FGDB, does this work?

You are looking for Python code. Do you have many PGDB's and looking for a way to process all of these at once?

View solution in original post

2 Replies
Luke_Pinner
MVP Regular Contributor

Have a look at arcpy.da.walk and arcpy.management.copy.

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

ArcGIS Help (10.2, 10.2.1, and 10.2.2)

XanderBakker
Esri Esteemed Contributor

Here the links to the 10.3 Help mentioned by Luke Pinner , since the "#" sign in the URL is still causing the link to direct to the start page of the Help:

In addition, not sure if this would work, but when you select in ArcCatalog (of the Catalog window) the elements of the PGDB and copy them into the FGDB, does this work?

You are looking for Python code. Do you have many PGDB's and looking for a way to process all of these at once?