CLI: Migration: File Share to File Share
Software: Cognitive Toolkit
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 aremaintained
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:
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"