<?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 Re: Backup Survey 123 Feature Layer in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1045848#M33782</link>
    <description>&lt;P&gt;Hi Martha,&lt;/P&gt;&lt;P&gt;Thanks for sending this on. I tried the method above which sufficed for what I was doing as I was appending data to a Survey 123 FL. But, the above is worth knowing about for future projects.&lt;/P&gt;&lt;P&gt;Cheers, David.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 09:01:44 GMT</pubDate>
    <dc:creator>DavidMc_Laughlin</dc:creator>
    <dc:date>2021-04-12T09:01:44Z</dc:date>
    <item>
      <title>Backup Survey 123 Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1041504#M33463</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Has anyone came across an effective way to backup a Survey 123 Feature Layer, including photos?&lt;/P&gt;&lt;P&gt;I've tried the AGOL assistant to copy to AGOL and Portal. However, the attachments aren't carried across.&lt;/P&gt;&lt;P&gt;I've also tried this using FME unsuccessfully.&lt;/P&gt;&lt;P&gt;Thanks, David.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 13:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1041504#M33463</guid>
      <dc:creator>DavidMc_Laughlin</dc:creator>
      <dc:date>2021-03-29T13:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Survey 123 Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1041529#M33467</link>
      <description>&lt;P&gt;If you go into the properties of the layer you can Export to a GDB which brings all photos and layers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1617028166535.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9557iD0EEDFBECA4A8ADE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DougBrowning_0-1617028166535.png" alt="DougBrowning_0-1617028166535.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a ArcPro python script that does it.&amp;nbsp; Grabs the last logged in user from Pro.&amp;nbsp; I schedule it as a batch file that runs every night.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os, time
from arcgis.gis import GIS

# Setup inputs
configFile = r"BackupTerrestrial2021.txt"
backupDir = r"your path"

# Make a connection to ArcPro
# only use this one if security issues
#gis = GIS('pro',verify_cert=False)
# preferred
gis = GIS('pro')

# read in the config file for list of HFS for Survey123
BackupAllAGOHFSConfigFile = open(configFile, 'r')
HFSList = BackupAllAGOHFSConfigFile.read().splitlines()
BackupAllAGOHFSConfigFile.close()


for HFS in HFSList:
    HFSname = HFS.split(",")[0]
    itemId = HFS.split(",")[1]          # this now comes from the main AGO page with all the settings.

    # Start the export to GDB job
    print ("Export job started for " + HFSname)
    fsLink = gis.content.get(itemId)
    result = fsLink.export("tempOut"+ HFSname, "File Geodatabase")

    # Save to file system
    dt = time.strftime("%Y%m%d_%H%M%S")
    out_file = os.path.join(backupDir,"{}_{}.zip".format(HFSname,dt))
    print ("Saving final downloaded FGDB to {}...".format(out_file))
    result.download(backupDir, out_file)

    # Remove the extracted FGDB from AGOL (cleanup)
    print ("Removing the export file from AGOL")
    deleteResult = result.delete()
    print ("Delete result is " + str(deleteResult))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use as config file so I can download several diff services.&amp;nbsp; Just give it a name to call the backup and the Item ID.&lt;/P&gt;&lt;P&gt;Testing222,87858c26de5e4cdca32958a5870667e1&lt;/P&gt;&lt;P&gt;Also have a ArcRest based one that just needs ArcMap level python but then it gets complicated depending on your security which may require packages.&amp;nbsp; Let me know if you want that one.&lt;/P&gt;&lt;P&gt;Edit: Note found out only the owner of the service can run this.&amp;nbsp; No idea why.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 14:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1041529#M33467</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2021-05-27T14:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Survey 123 Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1041592#M33471</link>
      <description>&lt;P&gt;Hi David, that GDB recommendation above may work great, but I ended up following these instructions when I did it in January.&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000012232" target="_blank"&gt;https://support.esri.com/en/technical-article/000012232&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Summary:&lt;/P&gt;&lt;P&gt;Create REPLICA of feature service and download that.&lt;/P&gt;&lt;P&gt;-Martha&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 16:15:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1041592#M33471</guid>
      <dc:creator>MarthaRodgers</dc:creator>
      <dc:date>2021-03-29T16:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Survey 123 Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1045847#M33781</link>
      <description>&lt;P&gt;Cheers Doug!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 08:59:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1045847#M33781</guid>
      <dc:creator>DavidMc_Laughlin</dc:creator>
      <dc:date>2021-04-12T08:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Survey 123 Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1045848#M33782</link>
      <description>&lt;P&gt;Hi Martha,&lt;/P&gt;&lt;P&gt;Thanks for sending this on. I tried the method above which sufficed for what I was doing as I was appending data to a Survey 123 FL. But, the above is worth knowing about for future projects.&lt;/P&gt;&lt;P&gt;Cheers, David.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 09:01:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1045848#M33782</guid>
      <dc:creator>DavidMc_Laughlin</dc:creator>
      <dc:date>2021-04-12T09:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Survey 123 Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1195596#M43921</link>
      <description>&lt;P&gt;Note I am currently working on a ticket with Esri now.&amp;nbsp; For the last few years once a service hits 10GB the script starts failing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 19:53:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1195596#M43921</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-07-25T19:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Backup Survey 123 Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1195644#M43925</link>
      <description>&lt;P&gt;Sorry just got the bug #&lt;STRONG&gt;BUG-000127047&lt;/STRONG&gt; back.&amp;nbsp; Been 3 years but looks like it is in plan now at least?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DougBrowning_0-1658784560557.png" style="width: 649px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/46729iB232ACF6F352D851/image-dimensions/649x374?v=v2" width="649" height="374" role="button" title="DougBrowning_0-1658784560557.png" alt="DougBrowning_0-1658784560557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 21:29:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/backup-survey-123-feature-layer/m-p/1195644#M43925</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2022-07-25T21:29:56Z</dc:date>
    </item>
  </channel>
</rss>

