ArcGIS Data Store 10.4 returns, "Error encountered: Invalid parameter (--source-loc)" in the restore data store command line tool when referencing a copy of the data store backup outside of the native backup location of the backup site.
The source location should reference the parent backup directory and not dbbackup.
e.g.
>restoredatastore --target most-recent --source-loc C:\backup --data-dir C:\arcgisdatastore
You are attempting to restore the data store from a data store backup. This process could take a long time, depending on the size of your data. Please do not interrupt the process once it has started.
Do you wish to continue (Yes or No)? y
Operation completed successfully
解决办法
Reference the backup via UNC path to the actual location where it resides, rather than referencing a copy of this backup folder in a different location.