Skip to main content
Skip table of contents

File System Migration Process with Shinydocs Pro Setup and Script Execution

File System Migration

Prerequisites:

  • Shinydocs Pro

  • Content Server connectivity and credentials

  • File share access and read permissions

  • RDP access to the Shinydocs Pro server

  • Service Account access

  • Shinydocs Pro license file, for CLI activation.

  • A text editor such as Notepad++ (optional) or Windows' Notepad

Files and Folders:

Please replace x:\ with your preferred location based on your internal standards.

  • x:\Shinydocs and:

    • x:\Shinydocs\batchfiles

    • x:\Shinydocs\sources

    • x:\Shinydocs\queries

  • ShinySync.cmd

  • contentserver.json in sources folder

  • match_all.json in queries folder

Command Line Interface (CLI) Activation:

This should only need to be performed once, or after a new license is issued.

  1. As the Service Account, open a Command Prompt as an Administrator and...

  2. Navigate to the Shinydocs Pro ControlCenter folder: (typically, C:\Program Files\Shinydocs Professional\ControlCenter)

  3. Use the command, CognitiveToolkit.exe -p "<path>" where the path is the location and filename of the license file.

  4. The CLI, Cognitive Toolkit, has been activated.

  5. Note this folder location for later use as CogFolder in the script.

    image-20260114-192637.png

Configuring the Secure Credentials:

  1. As the Service Account, open a Command Prompt as an Administrator and...

  2. Navigate to the Shinydocs Pro Control Center folder: (typically, C:\Program Files\Shinydocs Professional\ControlCenter)

  3. Use the command, CognitiveToolkit.exe savevalue, to save credentials

  4. When prompted, enter the UserID, then the password.

    image-20260114-192826.png
  5. The credentials will be saved securely into a file called saved-parameters.yaml in the ControlCenter folder.

  6. To verify the credentials have been stored you can use the command, type, to display the file in its encrypted form.

    image-20260114-193033.png
  7. Only the user that created the credentials, can use those credentials. Ensure that credentials are created by the same user, the Service Account, and will be using them for executing the scripts.

  8. If there is a credentials change, re-run the savevalue command as above to overwrite the value.

Deploying the Script:

Please remember to Unblock the zip file, Shinydocs_Migrate.zip, in the file's properties using File Explorer.

  1. Unzip the file to x:\Shinydocs

    image-20260114-193143.png
  2. Navigate to sources, open contentserver.json in a text editor.

    image-20260114-193216.png
  3. Update line 4 with the correct Content Server UserID

  4. Line 5 is a placeholder and can be left as is, or set to "~userid" to match the userid, the tilde (~), indicates this is a secure value.

  5. Line 6 must be updated to your Content Server's base URL (for cs.exe).

  6. Save this file.

  7. navigate to the batchfiles folder.

  8. Open the command script, ShinySync.cmd, in your text editor.

    image-20260114-193237.png
  9. The variables we need to set are in this first section:

    1. Line 5, CogFolder, is the location of the Cognitive Toolkit, as noted above.

    2. Line 6, is the location of these scripts, i.e. C:\Shinydocs

    3. Line 11, is the guid of the file share or source index as crawled by Shinydocs Pro

    4. Line 13, is the full path to the folder that was crawled.

    5. Line 16, is the target folder object in Content Server. This folder does not need to be empty, but this is preferred on first execution.

    6. Line 18, this is the location of the OpenSearch index, a default, and should not need to be changed.

    7. Line 19, This is the location of the file, contentserver.json, and is required.

    8. Line 20, is the location of the default filter query, match_all.json, and is required.

Unless directed, there's no need to modify the command script beyond line 20.

Running the Script:

  1. Open a Command Prompt as the Service Account

  2. Navigate to the batchFiles folder, x:\Shinydocs\batchfiles

  3. Enter the command: ShinySync.cmd

    image-20260114-193322.png
  4. The script will begin the migration...

Subsequent Source Migrations:

Once this script is proven and working and File System source crawled in Shinydocs Pro can be migrated by duplicating the script file, perhaps adding a name to each filename:

i.e. ShinySync.cmd >> ShinySync-LegalShare.cmd

Change the values for Lines 11, 12, 16, and perhaps 19 (only if this requires an alternate Content Server login) to correspond to the new location.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.