Skip To Content

Move ArcGIS Data Store from one drive to another on the same machine

When the disk drive where ArcGIS Data Store is installed and storing data gets close to running out of space, you can either free up disk space by removing other programs and files, or you can move the ArcGIS Data Store installation to another drive on the same machine, such as from the C drive to the D drive.

You can move the ArcGIS Data Store directory and content for a graph, relational, tile cache data store from one drive to another on the same machine.

Note:

Before you proceed with moving the data store content from one drive to another, create a backup of the entire ArcGIS Enterprise deployment.

The following steps assume that you have only one type of data store installed on the machine. Do not follow the steps below if you have more than one type of ArcGIS Data Store installed on the same machine.

Follow these steps to move the content for a graph, relational, or tile cache data store from one disk to another on the same machine:

  1. Open a command prompt on the ArcGIS Data Store machine where the data store is running and change the directory to the \datastore\tools directory.
  2. Run the backupdatastore utility to create a backup of the data store that you're going to move.
  3. Run the unregisterdatastore utility to unregister the graph, relational, or tile cache data store from the hosting server.
    Note:

    If the data store contains a standby relational or tile cache data store, run the removemachine utility before unregistering the data store.

    In this example, the graph store is unregistered:

    unregisterdatastore --stores graph

    In this example, the relational data store is unregistered:

    unregisterdatastore --stores relational

    In this example, the tile cache data store is unregistered:

    unregisterdatastore --stores tilecache

  4. Stop the ArcGIS Data Store service on all the machines in this data store.

    For example, if the tile cache data store contains three machines, you must stop the ArcGIS Data Store service on all three machines.

  5. Rename the existing ArcGIS Data Store content directory on the machine where you are moving the ArcGIS Data Store installation to another disk.

    You must do this because the directory in the new location must have the same name as the original ArcGIS Data Store content directory.

    For example, rename C:\arcgisdatastore to C:\old_arcgisdatastore. When you restore the data store in step 7, the content directory in the new location must be named arcgisdatastore.

  6. Start the ArcGIS Data Store service on all machines in this data store.
  7. On the machine where you are moving the data store to another drive, run the restoredatastore utility using the following syntax:

    restoredatastore --target <backup name> --source-loc <backup file location> --data-dir <location of new ArcGIS Data Store directory> --server-url <hosting server URL> --server-admin <ArcGIS Server administrator for hosting server> --server-password <password for ArcGIS Server administrator for hosting server>

    Note:

    Use the data-dir option to specify the new location of the ArcGIS Data Store directory, such as D:\arcgisdatastore. Ensure that the directory in the new location has the same name as the original directory.

    The following are examples of restoring a data store with a new content directory location:

    Restore a relational data store from a backup file.

    restoredatastore  --store relational --target rel1 --source-loc \\backupserver\datastore_backups\backup\relational  
    --data-dir D:\arcgisdatastore  --server-url servermachine.domain.com --server-admin siteadmin --server-password siteadminpassword

    Restore a tile cache data store from a backup file.

    restoredatastore --store tilecache--target tc1 --source-loc \\backupserver\datastore_backups\backup\tilecache  
    --data-dir D:\arcgisdatastore  --server-url servermachine.domain.com --server-admin siteadmin --server-password siteadminpassword