<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Programmatically export a geodatabase to another geodatabase? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785601#M1776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to migrate from one enterprise geodatabase to another enterprise geodatabase (both are postgresql).&amp;nbsp; I've been using ArcCatalog to do the exports, exporting a small set of tables at a time since ArcCatalog tends to freeze on large sets of data.&amp;nbsp; This process has been getting tedious and I was wondering if there was a way to programmatically export geodatabases?&amp;nbsp; I've checked the&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/alphabetical-list-of-arcpy-functions.htm"&gt;ArcPy documentation&lt;/A&gt; but there doesn't seem to be any functions that can do this. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 17:59:02 GMT</pubDate>
    <dc:creator>DannyIm</dc:creator>
    <dc:date>2017-05-08T17:59:02Z</dc:date>
    <item>
      <title>Programmatically export a geodatabase to another geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785601#M1776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to migrate from one enterprise geodatabase to another enterprise geodatabase (both are postgresql).&amp;nbsp; I've been using ArcCatalog to do the exports, exporting a small set of tables at a time since ArcCatalog tends to freeze on large sets of data.&amp;nbsp; This process has been getting tedious and I was wondering if there was a way to programmatically export geodatabases?&amp;nbsp; I've checked the&amp;nbsp;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/alphabetical-list-of-arcpy-functions.htm"&gt;ArcPy documentation&lt;/A&gt; but there doesn't seem to be any functions that can do this. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 17:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785601#M1776</guid>
      <dc:creator>DannyIm</dc:creator>
      <dc:date>2017-05-08T17:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically export a geodatabase to another geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785602#M1777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may want to look into creating a backup and then restore it to the other PostgreSQL instance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-postgresql/backups-postgresql.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-postgresql/backups-postgresql.htm"&gt;PostgreSQL backups—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-postgresql/restore-geodatabase-postgresql.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-postgresql/restore-geodatabase-postgresql.htm"&gt;Restore a geodatabase to PostgreSQL—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is versioned this is the best option to keep all the tables in their correct states.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 18:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785602#M1777</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2017-05-08T18:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically export a geodatabase to another geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785603#M1778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the PG databases are in the same server, you might be able to INSERT INTO ... SELECT across databases within SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's not at all difficult to write ArcPy code with a da.SearchCursor fetching rows from one database and da.InsertCursor writing into another.&amp;nbsp; I moved several dozen tables spanning 60 million rows using this last summer without any ArcGIS-related errors (using both 32-bit Python and 64-bit Python).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 19:00:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785603#M1778</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-05-08T19:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically export a geodatabase to another geodatabase?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785604#M1779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried doing a pg_dumpall from a postgresql 9.0 database, restoring that to a postgresql 9.5 database, but I get many errors related to parsing the geometries.&amp;nbsp; I came across this&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/192684-upgrade-from-postgresql-93-to-95"&gt;thread&lt;/A&gt; where the poster had a similar issue to mine, and the workaround of using ArcCatalog to copy data from the old to new database seems to work without any issues. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran into the same issue following the instructions in the links that you've posted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 22:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/programmatically-export-a-geodatabase-to-another/m-p/785604#M1779</guid>
      <dc:creator>DannyIm</dc:creator>
      <dc:date>2017-05-08T22:38:36Z</dc:date>
    </item>
  </channel>
</rss>

