<?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 Geodatabase Archiving Script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81454#M6496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing a python script,&amp;nbsp; which is a weekly update of a shapefile. (if I was not going to use my geodatabase it is essentially create new shapefile from excel sheet, copy old shapefile renaming it and copying it to my archive folder, and then copying the new shapefile and placing it in my current folder) but I definently do want to use my geodatabase archiving methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However with geodatabase I have seen there is archiving options that reduce the need to rename/ move folder. but as there is no toolbox methods to do this is it even viable via python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially I am wanting to write a python script to automate Geodatabase Archiving (Enable Archiving, Creating Historical Markers) is this possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 05:36:48 GMT</pubDate>
    <dc:creator>JoeHewitt</dc:creator>
    <dc:date>2013-08-06T05:36:48Z</dc:date>
    <item>
      <title>Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81454#M6496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am writing a python script,&amp;nbsp; which is a weekly update of a shapefile. (if I was not going to use my geodatabase it is essentially create new shapefile from excel sheet, copy old shapefile renaming it and copying it to my archive folder, and then copying the new shapefile and placing it in my current folder) but I definently do want to use my geodatabase archiving methods.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However with geodatabase I have seen there is archiving options that reduce the need to rename/ move folder. but as there is no toolbox methods to do this is it even viable via python?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Essentially I am wanting to write a python script to automate Geodatabase Archiving (Enable Archiving, Creating Historical Markers) is this possible?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 05:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81454#M6496</guid>
      <dc:creator>JoeHewitt</dc:creator>
      <dc:date>2013-08-06T05:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81455#M6497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes indeed, what you describe is quite possible using python,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is pretty straightforward.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The similarity to Geodatabase Archiving is only superficial.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Geodatabase Archiving is performed on an enterprise relational database utilizing versioning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What you are doing is very much simpler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The date functions in python (for example, strftime) give &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a great range of options for formatting the time stamp string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you would (likely) want to add to base shape file name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, it is basicaly finding and copying shapefiles....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any event, one would want to build it as a custom tool rather than have a pre-built tool &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with the pethora of options a general tool would need to cover all cases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 10:54:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81455#M6497</guid>
      <dc:creator>markdenil</dc:creator>
      <dc:date>2013-08-06T10:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81456#M6498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes indeed, what you describe is quite possible using python,&lt;BR /&gt;It is pretty straightforward.&lt;BR /&gt;&lt;BR /&gt;The similarity to Geodatabase Archiving is only superficial.&lt;BR /&gt;Geodatabase Archiving is performed on an enterprise relational database utilizing versioning.&lt;BR /&gt;What you are doing is very much simpler.&lt;BR /&gt;&lt;BR /&gt;The date functions in python (for example, strftime) give &lt;BR /&gt;a great range of options for formatting the time stamp string&lt;BR /&gt;you would (likely) want to add to base shape file name.&lt;BR /&gt;Otherwise, it is basicaly finding and copying shapefiles....&lt;BR /&gt;&lt;BR /&gt;In any event, one would want to build it as a custom tool rather than have a pre-built tool &lt;BR /&gt;with the pethora of options a general tool would need to cover all cases.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I worded my question very poorly. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already have the script to archive without the use of gdb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But now I want to utilize Geodatabase archiving. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the steps in my script would be 1. Enabling Archiving. 2. Create Historical Marker (Start an edit session, add my new features, save edit reconcile and post, click historical marker manager to create the new marker) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Im not sure if this is possible as there seems to be now way to do it as a geoprocess. But if anyone has maybe tried it/alternative method?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 05:38:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81456#M6498</guid>
      <dc:creator>JoeHewitt</dc:creator>
      <dc:date>2013-08-07T05:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81457#M6499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you running ArcSDE? As far as I know, FGDB and PGDB formats don't suport archiving/versioning.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the interest of keeping things simple and straightforward (which is always a good idea), I don't see much wrong with what you are doing. That same copy/rename/repost stategy can be applied to FGDB, GRID, SHP, PGDB, SDE, whatever. I do it all the time - it's great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It may be more "efficient" database/storage-wise to implement SDE enterprise archiving/versioning, but I know it isn't easier.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 15:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81457#M6499</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-08-07T15:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81458#M6500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Are you running ArcSDE? As far as I know, FGDB and PGDB formats don't suport archiving/versioning.&lt;BR /&gt;&lt;BR /&gt;In the interest of keeping things simple and straightforward (which is always a good idea), I don't see much wrong with what you are doing. That same copy/rename/repost stategy can be applied to FGDB, GRID, SHP, PGDB, SDE, whatever. I do it all the time - it's great.&lt;BR /&gt;&lt;BR /&gt;It may be more "efficient" database/storage-wise to implement SDE enterprise archiving/versioning, but I know it isn't easier.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes this is with ArcSDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whats wrong with what im doing with the copy/rename/repost is that it is leading to hundreds of archived shapefiles. But as I am aware with SDE you can just have the one shapefile and the archives will be documented within that one shapefile....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So if there is anyway I would much rather do that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 00:09:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81458#M6500</guid>
      <dc:creator>JoeHewitt</dc:creator>
      <dc:date>2013-08-08T00:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81459#M6501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmmm. Nothing I see here: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//003n000000sr000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//003n000000sr000000&lt;/A&gt;&lt;SPAN&gt; leads me to believe you can script this. Can you handle it all through plain versions? That you can script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 16:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81459#M6501</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-08-08T16:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81460#M6502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also, by "shapefile" I think you mean ArcSDE featureclass, right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 16:22:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81460#M6502</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2013-08-08T16:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81461#M6503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think you strictly need to script Archiving. As I understand it, it keeps track of changes to the Default version. I don't remember the specific details (the documentation has it though), but it adds a couple date fields that are sort of like "this feature looked like this from X to Y". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Historical Markers are for marking specific events in time ("Subdivision Blah Built"). Depending on needs it might be nice to script those I suppose, but if I understand correctly, once Archiving is setup for a feature it will capture the changes regardless.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 20:06:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81461#M6503</guid>
      <dc:creator>MattSayler</dc:creator>
      <dc:date>2013-08-08T20:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81462#M6504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, by "shapefile" I think you mean ArcSDE featureclass, right?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I don't think you strictly need to script Archiving. As I understand it, it keeps track of changes to the Default version. I don't remember the specific details (the documentation has it though), but it adds a couple date fields that are sort of like "this feature looked like this from X to Y". &lt;BR /&gt;&lt;BR /&gt;The Historical Markers are for marking specific events in time ("Subdivision Blah Built"). Depending on needs it might be nice to script those I suppose, but if I understand correctly, once Archiving is setup for a feature it will capture the changes regardless.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay I see, im thinking I could potentially archive&amp;nbsp; by using python to open an edit session, and then using an update cursor, add my feature or update the current featues table with my changes from the new feature. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hopefully this works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 04:31:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81462#M6504</guid>
      <dc:creator>JoeHewitt</dc:creator>
      <dc:date>2013-08-14T04:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Geodatabase Archiving Script</title>
      <link>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81463#M6505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is an Archiving Toolbox new at 10.2!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000018v000000"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000018v000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 19:20:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geodatabase-archiving-script/m-p/81463#M6505</guid>
      <dc:creator>JillianPenney</dc:creator>
      <dc:date>2013-08-14T19:20:36Z</dc:date>
    </item>
  </channel>
</rss>

