restoredatastore syntax

1652
8
08-29-2017 04:45 PM
MarshallRobinson
New Contributor III

I'm attempting to restore my datastore using the restoredatastore command line utility and I need some help with getting the right syntax for the command I'm writing. 

When I run it I keep getting a "failed to generate token" as if my password is wrong, but I think the real issue is how I'm writing the url parameter. Does anyone have experience running this utility successfully? 

Tags (1)
0 Kudos
8 Replies
RebeccaStrauch__GISP
MVP Emeritus

I don't know the answer, but it might help if you show the syntax you are using (replace an user/pass data, of course)

MarshallRobinson
New Contributor III

Forgot to add that on my first post...my bad. Here it is:

restoredatastore --store relational --target db_7gyct-20170824055959004.backup --source-loc \\localhost\DataStoreBackup\relational\dbbackup\db_7gyct-20170824055959004 --data-dir C:\Users\Administrator\Documents\DataStoreRestore --server-url http://<servername>/server --server-admin *** --server-password ****

I've tried multiple variations of the --server-url parameter and get the same error.

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

again, I don't know for sure, but I would try

https://<servername>:6443/..       or http://<servername>:6080/..    or the equivalent for Portal (since that is probably what this is related to??).

0 Kudos
PeterKing
Occasional Contributor

I had the same issue today but found that it was because I was writing the "--server-admin" syntax as "--server-admin <domain/username>" 

The restore tool worked when written as "--server-admin <username>"

0 Kudos
MarshallRobinson
New Contributor III

Thanks, but I couldn't get that to work either. Not sure what's going on. Do you know if there are more detailed error logs for this kind of issue?

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

I do not since I haven't used it.  I'm assuming you already looked thru the help?

Recover a data store—Portal for ArcGIS (10.5.x) | ArcGIS Enterprise 

If you have and still have issues, might be worth a call/chat with tech support.

0 Kudos
MarshallRobinson
New Contributor III

Yeah, I guess it's time for tech support. Have you ever had to use the recovery tool? I've followed the documentation line-by-line and it doesn't work for me. Even when trying to use the most basic recovery parameters.

0 Kudos
RebeccaStrauch__GISP
MVP Emeritus

I have not.  We are still testing Portal.

0 Kudos