When you install Portal for ArcGIS, a directory is created to store content saved and uploaded by users of the portal. This is known as the portal content directory. The default location is <Portal for ArcGIS installation directory>/arcgis/portal/usr/arcgisportal/content.
You can change the location of the portal content directory using the Portal Administrator Directory. For example, you may decide to put it on another machine that has more disk space or a more rigorous backup environment. It is recommended that you make this change before exposing the portal to end users.
Note:
Other directories, such as index, db, and temp, are included under <Portal for ArcGIS installation directory>/arcgis/portal/usr/arcgisportal/. These directories can also be modified, but they must remain local to the portal machine. Portal for ArcGIS does not support these directories being placed on a network share.
Follow the steps below to change the location of the portal content directory.
- Sign in to the machine with the account that was used to install Portal for ArcGIS.
- Make a copy of the portal content directory in your new desired location.
- Grant the account that was used to install Portal for ArcGIS 600 permissions to the new directory. If this is a network location, ensure that the account can access the directory.
- Sign in to the Portal Administrator Directory as a member of the default Administrator role in your portal. The URL is in the format https://webadaptorhost.domain.com/webadaptorname/portaladmin.
- Edit the directory location by clicking System > Directories > content > Edit Directory.
- Enter the following JSON string in the Path text box, editing as appropriate for your chosen location: { "type": "fileStore", "provider": "FileSystem","connectionString":
"/net/share/portal/content"}.
Note:
When certain properties exist, the connection string is encrypted, for example, when content resides in a Microsoft Azure Blob storage container or when using public and private keys for content in an Amazon S3 bucket. In such cases, the JSON string will be represented in this way:
Amazon Web Services
{ "type": "cloudStore", "provider": "Amazon","connectionString": "SaVoKmdzPvZHRjdbBF56M46656YV3OeQAlTCrlHSOIk.","objectStore":"myBucket,"isConnectionStringEncrypted":true}
Microsoft Azure
{ "type": "cloudStore", "provider": "Azure","connectionString": "SaVoKmdzPvZHRjdbBF56M46656YV3OeQAlTCrlHSOIk.","objectStore":"https://myaccount.blob.core.windows.net/container,"isConnectionStringEncrypted":true}
- Click Edit Directory to apply your changes.
- Click System > Directories > content to verify that the new file path is being used.
Your portal will now read from and write to the new content directory. Optionally, you can delete the old content directory or rename it, for example, from admin/arcgis/portal/usr/arcgisportal/content to admin/arcgis/portal/usr/arcgisportal/content_old.