Skip to main content
Skip table of contents

Migration: File Share to File Share

Software: Cognitive Toolkit

Operation: Migrate

Details: For internal servers or file shares

Use the Migrate operation in the Cognitive Toolkit to migrate documents from one file share to another file share.

  • Items are copied with all the metadata and the index (For example, date, time, user, destination path)

  • Structure/taxonomy of the files is maintained

  • Created and modified dates are maintained

Note: Permissions and ownership are not carried over during migration.

For files that are migrated into a folder with existing files that are the same, the Migrate operation will respect the --disable-over-write true flag and use --location-field and --name-field-name configuration settings.

This means that a duplicate file will be created and appended with a number, rather than overwriting the file and the last access date.

Steps

Example command to run the migration:

CODE
Migrate --index-server-url "http://localhost:9200/" --index-name "migrateindex" --destination-source-settings "C:\testdocs\migrate\settings\destination.json" --query "C:\testdocs\Queries\match_all.json" --path-prefix-to-remove "C:\testdocs\migrate\Source" --start-location "C:\testdocs\migrate\Destination"

Command parameters

--index-server-url

path to the index

--index-name

name of the index

--destination-source-settings

path to JSON file containing a sourceType of FileSystem, for example:

CODE
{
  "sourceType" : "FileSystem"
}

Download the File Share source setting resource

--query

path to JSON file query

--path-prefix-to-remove

path the folder containing all the files to migrate (Optional, but improves results when included)

--start-location

path to the destination folder

JavaScript errors detected

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

If this problem persists, please contact our support.