English

How To: Download attachments from a hosted feature service

Summary

Backing up ArcGIS Online data is a recommended practice because any content deleted from an organization is permanently removed and cannot be recovered.

The instructions provided describe how to download and extract a hosted feature service with attachments to save individual copies of the data to a local machine.

Procedure

Follow the steps provided to create a replica (a file geodatabase) from the REST endpoint of the service to save attachments from a hosted feature service.

  1. Log in to the ArcGIS Online organizational account.
  2. Navigate to My Content, and browse to the desired feature service with attachments.
  3. Click the options icon next to the feature service to be downloaded, and select View item details. The item details page for the hosted feature service displays.

    View item details to open item details page for the hosted service.
     
  4. Scroll down to the bottom of the page to find the URL section, and click View. The ArcGIS REST Services Directory page displays.

    Click View to open the ArcGIS REST Directory page.
     
  5. Scroll down to the bottom of the page, and click Create Replica. The page for Create Replica: (feature service name) displays.

    Click Create Replica.
     
  6. Specify the Replica Name. The name cannot contain any spaces.
  7. Specify Layers with the layer IDs to include in the replica. For example, if the service contains 4 layers, specify '0,1,2,3'.
  8. Set the following parameters accordingly based on the size of datasets:
    • For small datasets:
      • Return Attachments: True
      • Sync Model: none
      • Attachments Sync Direction: bidirectional
      • Data Format: FILEGDB

        Parameters required for small dataset.
         
    • For large datasets:
      • Return Attachments: True
      • Create Replica Asynchronously: True
      • Sync Model: none
      • Attachments Sync Direction: bidirectional
      • Data Format: FILEGDB

        Parameters required for a larger dataset.
         
  9. Click Create Replica and then use one of the options below to download the File Geodatabase. To get the output, extract the file geodatabase, which contains the features and attachments from the hosted feature service.
    • With parameters used for small datasets, a responseUrl appears when the replica has finished being created, and can be clicked to download the zip file.

      responseURL
       
    • With parameters used for large datasets, a statusURL displays at the bottom of the screen.

      Click statusURL
       Click this URL to display the Replica Status page, and click Check periodically while the replica is created until a Result Url appears. Use the Result Url to download the zip file.
       
      The Replica Status page.

Related Information