Skip to content
Other versions

Loading…

Shard Backend Migration

This feature helps the administrator copy the content that already exists in the repository from one storage backend to another (filesystem or S3), for a single shard or for all of them. Use it whenever a backend is switched, so the content stored before the switch is also available on the new backend:

  • To move the whole installation to S3, changing the “repository.{folder}.type” properties — see Change repository home.
  • To move a single shard, changing its Storage in the Shards administration.

It is available at Administration > Utilities > Shards > Shard Backend Migration.

  1. Run the migration with Keep source copy checked while users keep working on the current backend. Nothing is deleted, and it can be repeated as many times as needed: content already at the destination is skipped, so each run only copies what has been added since the previous one.
  2. Switch the backend: the “repository.{folder}.type” property in “$TOMCAT_HOME/openkm.properties” (restart required), or the shard Storage in the Shards administration.
  3. Run the migration again with Keep source copy unchecked. It copies anything still missing and deletes the source copy of every item already verified at the destination.
  • Select the Purpose:
    • DATASTORE: content of documents (every version) and emails.
    • EXTRACTION: extracted text of documents and emails.
    • OCR_TEMPLATE: images of the OCR templates.
  • Select the Shard, or All shards.
  • Select the source backend (From) and destination backend (To): Filesystem or S3.
  • Check or uncheck Keep source copy.
  • Click the Start button.

Every item copied is verified at the destination before it is counted as copied: against the checksum stored in the database for document and email content, or by size otherwise. An item that fails the verification is removed from the destination and counted as an error, and its source copy is never deleted.