ArcGIS Enterprise 10.7.1 Backup with webgisdr tool

457
2
08-20-2021 09:12 AM
Sunita_Khanal
New Contributor II

Hello everyone!

I am trying to do a full backup of ArcGIS enterprise using the webgisdr tool. As per ESRI Document, I created a copy of webgisdr property file and updated the location for backup location and shared location. I then executed the command as an admin. Below is the command I used

E:\Program Files\ArcGIS\Portal\tools\webgisdr>webgisdr --export --file E:\propfiles\webgisdr.properties

We have portal, server, and datastore in different virtual machines. I created a folder for Shared location and Backup locations in E drive of portal machine. All machines and service account have full access to these two folders and have been shared.

SHARED_LOCATION = \\\\servername\\portalbackupshared

BACKUP_LOCATION = \\\\servername\\portalbackup

Got following error message.

Please check that the location is valid and that the ArcGIS Data Store account has permissions to the location."}}

Failed to back up the ArcGIS Data Store: Url: https://servername:2443/arcgis.

{"error":{"code":500,"details":null,"message":"Cannot write to directory path '\\\\servername\\portalbackupshared\\WebGISSite1629471353580\\dataStore\\be8797a3-5298-4319-b085-a55c49202b1e'. Please check that the location is valid and that the ArcGIS Data Store account has permissions to the location."}}

I made sure that the Datastore has full permission to these folders.

Additional information: Reading this post, I created folders with same name in the server and datastore machine and gave full access to service account and machines. After running the command, It looks like, directories are created in the shared location of portal machine and then after few minutes they are deleted from the portal. It also appears that server backup is created in the shared drive of server machine.Error backup.png

Reading the document it is not very clear if the shared and backup location should be same or different. In my case it is different, but also tried with the same folder for both. 

Also, Do I have to create the same folder in all machines? If yes, is there any specific place to create these folders. I already tried in the E drive for all three machines but still got the same error message. 

I tried many different way but nothing worked and I am really hoping that somebody might have similar issue and have come up with the solution. 

Thanks in advance for your help.

Sunita 

 

0 Kudos
2 Replies
ReeseFacendini
Esri Contributor

The shared_location and backup_location have to be network file shares (or folders on the same file share), that all machines can access, via the service account used during installation.  WebGISDr needs to have a way to take the individual backups (from Server, Portal, and DataStore), and combine them into a single file at the end.

0 Kudos
Sunita_Khanal
New Contributor II

Hello ReeseFacendini, 

I appreciate your response. My backup folder and shared folder are located in E drive of portal machine and both the server machine and datastore machine have access to E drive as well as the the individual folders. Also, they have been shared. Here is the error message that I am getting and it appears to be related with access to datastore and I am not sure why as I have already given full access to datastore. 

Thanks,

Sunita

 

Failed to back up the ArcGIS Data Store:

09:24:23.792 [pool-1-thread-3] ERROR com.esri.arcgis.webgis.component.service.impl.DataStoreDRService - {"error":{"code":500,"details":null,"message":"Cannot write to directory path '\\\\XXX-XXXX\\portalbackupshared\\WebGISSite1629728648663\\dataStore\\be8797a3-5298-4319-b085-a55c49202b1e'. Please check that the location is valid and that the ArcGIS Data Store account has permissions to the location."}}

0 Kudos