Select to view content in your preferred language

Restore to standby environment per component (ArcGIS Datastore, ArcGIS for Server, Portal for ArcGIS)

371
4
06-06-2024 12:35 AM
NicolasGIS
Regular Contributor

Hello,

Running quite often webgisdr backup and restore to standby environment to maintain availability while upgrading the "master" one, I really miss a functionnality: being able to restore a single specific component (ArcGIS Datastore, ArcGIS for Server, Portal for ArcGIS).

Something like:

 

webgisdr --import --file C:\propfiles\toimport.properties --component Server

 

It happened quite few times a full webgisdr restore fails at some step (eg: restore of Federated Server or Portal for ArcGIS). For example, lately I got a "Connexion reset" after restoring an ArcGIS Server. Rebooting Server fixed it strangely... But then I had to rerun a full webgisdr restore and wait again 10 hours for unzipping / restore relational datastore / restore tileCache datastatore / restore hosting server. It's a big waste of time and very annoying when planning an intervention ! You basically need to postpone for the next day. 

 

I don't think this functionnality exists. There are the export/import site operations avaible for both Portal for ArcGIS and ArcGIS for Server but I am under the impression that it is solely meant to be used on the "master" environment and not the standby. For example, ArcGIS Server directory paths must be the same while with webgisdr it is not required:

https://enterprise.arcgis.com/en/portal/latest/administer/windows/overview-disaster-recovery-replica...

So I guess webgisdr is doing some additional/different configurations while importing the exported site located in the webgisdr zip file.

 

Any thought about it @JonathanQuinn maybe ? Did I miss anything ? I would love to be wrong !

 

Thanks,

 

Best regards,

 

Nicolas

 

 

0 Kudos
4 Replies
Scott_Tansley
MVP Regular Contributor

if you log into an ArcGIS Server on 'say' https://localhost:6443/arcgis/admin then on the first screen there is an option to export site and import site.  A simple script will let you call the export site on a regular basis as a REST call.

The same concept exists for the Enterprise portal using https://localhost:7443/arcgis/portaladmin

And in the command line tools for the Data Stores, your can backup and restore just a single datastore, relational/tile-cache etc.

I believe that WebGISDR just sends messages to the same API, it just pulls the results together and packages them.  So a belt and braces approach would see you make individual calls to each API and also to webgisdr.

Scott Tansley
https://www.linkedin.com/in/scotttansley/
0 Kudos
NicolasGIS
Regular Contributor

Thanks  @Scott_Tansley  for your reply.

But that what I mean: export site / import site on standby does not behave the same as a webgisdr restore. When I tried that, the standby ArcGIS Server started pointing to my production shared directories ! I wonder if it did not deploy the folder to them as well ! Fortunately, it was without consequences...

 

0 Kudos
Scott_Tansley
MVP Regular Contributor

Sorry, I should have read more of your original post.  

Is you standby not isolated?  Most of my clients don't run standby, but those that do have the standay in a VLAN, so that otcan't communicate with the master.  That means that you can have exactly the same machine names etc, and you just change DNS entries to make standby into master.

Sorry I'd made assumption of  your infrastructure.  

Scott Tansley
https://www.linkedin.com/in/scotttansley/
0 Kudos
JonathanQuinn
Esri Notable Contributor

You aren't wrong; you can't restore a single component using the DR tool. If you need to restore a single component, then you can extract the backup using 7zip or another compression utility and use the APIs as noted by @Scott_Tansley. Note that for the Server restore, there are two "branches" of the restore; one for the DR tool that honors target properties/configurations, and one that called by just running importSite, which uses the properties/configurations in the incoming backup. The difference is why you see your target environment use the source environment directories. Two approaches:

1. Restore using importSite and then update directories and re-register additional machines (if applicable), as the restore using just the importSite branch will remove all but one machine.

2. Restore programmatically and pass in the "mode":"dr" property into the importSite operation. This is what the DR tool does to achieve a "data only" restore, vs "data and settings".

I'm curious though, can you describe how long each component takes to restore, and how much data you have in each?

0 Kudos